From 16b494fa71be9efdb8a14515a58eea482247e625 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 27 Jul 2017 22:10:12 +0200 Subject: [PATCH] only mingw has this problem.. --- client/scandir.c | 4 ++++ client/scandir.h | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/scandir.c b/client/scandir.c index aaba9c0ec..6f8778318 100644 --- a/client/scandir.c +++ b/client/scandir.c @@ -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 diff --git a/client/scandir.h b/client/scandir.h index c7c47e25c..22399bc0f 100644 --- a/client/scandir.h +++ b/client/scandir.h @@ -15,9 +15,8 @@ #include #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__ \ No newline at end of file