]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkfilesel.c
Support added for building using a GNU toolchain on Win32,
[~andy/gtk] / gtk / gtkfilesel.c
index b1dac5795965debfd8be5e0708a16ee6b1118d2d..5a654a072cb7557cc6e56a171508b4a098a5d610 100644 (file)
 
 #include "config.h"
 
+#include <glib.h>              /* To get stat->_stat redefinition
+                                *  for mingw32
+                                */
+
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #define STRICT
 #include <windows.h>
 
-#ifdef _MSC_VER
+#ifdef NATIVE_WIN32
 #include <direct.h>
+#include <io.h>
+#define mkdir(p,m) _mkdir(p)
 #ifndef S_ISDIR
 #define S_ISDIR(mode) ((mode)&_S_IFDIR)
 #endif
-#define mkdir(path,mode) mkdir(path)
-#endif
-#endif
+
+#endif /* NATIVE_WIN32 */
+
+#endif /* WIN32 */
 
 #define DIR_LIST_WIDTH   180
 #define DIR_LIST_HEIGHT  180