Skip to content

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

Description

@vtorri

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions