only mingw has this problem..

This commit is contained in:
iceman1001 2017-07-27 22:10:12 +02:00
parent a797314dab
commit 16b494fa71
2 changed files with 6 additions and 3 deletions

View file

@ -12,6 +12,8 @@
#include "scandir.h"
#ifdef _WIN32
#ifdef __cplusplus
extern "C" {
@ -89,3 +91,5 @@ int alphasort (const struct dirent **a, const struct dirent **b)
#ifdef __cplusplus
}
#endif
#endif // win32

View file

@ -15,9 +15,8 @@
#include <stdlib.h>
#ifdef _WIN32
#else
#endif // _WIN32
extern int scandir (const char *dir, struct dirent ***namelist, int (*select) (const struct dirent *), int (*compar) (const struct dirent **, const struct dirent **));
extern int alphasort (const struct dirent **a, const struct dirent **b);
#endif // _WIN32
#endif // SCANDIR_H__