Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Avoid using dirent.h #2884

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gkisalapl
Copy link
Contributor

This PR start series of changes which should make possible compilation of nntrainer on windows platform.
Header dirent.h is not available on windows so to make code more portable I've replaced this functionality with std::filesystem

Self-evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

@gkisalapl
Copy link
Contributor Author

It's manual rebase of #2869

@myungjoo
Copy link
Member

myungjoo commented Jan 22, 2025

You don't need to close and reopen PR for such reasons. You can ALWAYS overwrite with force push to arbitrary remote branches of yours. Please keep force-pushing to the same PR in the future.

If git rebase main didn't work, you can apply a combination of reset, cherry-pick, apply, format-patch, am, and fetch.

Copy link
Collaborator

@jijoongmoon jijoongmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@EunjuYang EunjuYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gkisalapl
Copy link
Contributor Author

You don't need to close and reopen PR for such reasons. You can ALWAYS overwrite with force push to arbitrary remote branches of yours. Please keep force-pushing to the same PR in the future.

If git rebase main didn't work, you can apply a combination of reset, cherry-pick, apply, format-patch, am, and fetch.

Yes, I was not familiar with scheme of work on git used in this project, now I think I'm up to speed with the process.

This PR start series of changes which should make possible compilation of nntrainer on windows platform.
Header dirent.h is not available on windows so to make code more portable I've replaced this functionality with std::filesystem

Self-evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Grzegorz Kisala <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants