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

qoibench.c: compilation error on Windows: dirent is not available #276

Open
vtorri opened this issue Aug 14, 2023 · 2 comments
Open

qoibench.c: compilation error on Windows: dirent is not available #276

vtorri opened this issue Aug 14, 2023 · 2 comments

Comments

@vtorri
Copy link
Contributor

vtorri commented Aug 14, 2023

dirent is not supported on Windows with Visual Studio. It has some minimal support with mingw64 but there is still this error with mingw64:

qoibench.c:502:37: error: 'struct dirent' has no member named 'd_type'
  502 |                                 file->d_type & DT_DIR &&
      |                                     ^~
qoibench.c:502:48: error: 'DT_DIR' undeclared (first use in this function); did you mean 'CB_DIR'?
  502 |                                 file->d_type & DT_DIR &&
      |                                                ^~~~~~
      |                                                CB_DIR

I can provide a cross platform PR for dirent if you want

@matu3ba
Copy link

matu3ba commented Oct 18, 2024

related is https://github.com/tronkko/dirent

@vtorri
Copy link
Contributor Author

vtorri commented Oct 18, 2024

the code to add in qoi is not very big, just using FindFirstFile and FindNextFile, that's all. Adding a big piece of code is maybe not interesting for the author of qoi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants