diff options
Diffstat (limited to 'gtk/gtkfilesel.c')
-rw-r--r-- | gtk/gtkfilesel.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c index 9b217c65d3..b1dac57959 100644 --- a/gtk/gtkfilesel.c +++ b/gtk/gtkfilesel.c @@ -45,18 +45,6 @@ #include <pwd.h> #endif -#ifdef WIN32 -#define STRICT -#include <windows.h> - -#ifdef _MSC_VER -#ifndef S_ISDIR -#define S_ISDIR(mode) ((mode)&_S_IFDIR) -#endif -#define mkdir(path,mode) mkdir(path) -#endif -#endif - #include "fnmatch.h" #include "gdk/gdkkeysyms.h" @@ -79,6 +67,19 @@ #include "gtkdialog.h" #include "gtkintl.h" +#ifdef WIN32 +#define STRICT +#include <windows.h> + +#ifdef _MSC_VER +#include <direct.h> +#ifndef S_ISDIR +#define S_ISDIR(mode) ((mode)&_S_IFDIR) +#endif +#define mkdir(path,mode) mkdir(path) +#endif +#endif + #define DIR_LIST_WIDTH 180 #define DIR_LIST_HEIGHT 180 #define FILE_LIST_WIDTH 180 |