only mingw has this problem..
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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__
|
||||
Reference in New Issue
Block a user