diff --git a/desmume/src/path.h b/desmume/src/path.h index a5b7f6489..4ae029c78 100644 --- a/desmume/src/path.h +++ b/desmume/src/path.h @@ -1,15 +1,20 @@ #include -#include #ifdef _MSC_VER #define mkdir _mkdir #endif -#if defined(_WINDOWS) && !defined(WXPORT) +#if defined(_WINDOWS) +#include +#if !defined(WXPORT) #include "resource.h" #else #include -#endif +#endif /* !WXPORT */ +#else +#include +#endif /* _WINDOWS */ + #include "time.h" #include "utils/xstring.h" @@ -50,6 +55,7 @@ public: } }; //----------------------------------- +#if defined(_WINDOWS) static void FCEUD_MakePathDirs(const char *fname) { char path[MAX_PATH]; @@ -83,6 +89,7 @@ static void FCEUD_MakePathDirs(const char *fname) } while(1); } +#endif //------------------------------ class PathInfo