Fix compilation on !_WINDOWS.
This commit is contained in:
parent
271fd8bfe1
commit
499826aab3
|
@ -1,15 +1,20 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <direct.h>
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define mkdir _mkdir
|
#define mkdir _mkdir
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WINDOWS) && !defined(WXPORT)
|
#if defined(_WINDOWS)
|
||||||
|
#include <direct.h>
|
||||||
|
#if !defined(WXPORT)
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#else
|
#else
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#endif
|
#endif /* !WXPORT */
|
||||||
|
#else
|
||||||
|
#include <glib.h>
|
||||||
|
#endif /* _WINDOWS */
|
||||||
|
|
||||||
#include "time.h"
|
#include "time.h"
|
||||||
#include "utils/xstring.h"
|
#include "utils/xstring.h"
|
||||||
|
|
||||||
|
@ -50,6 +55,7 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//-----------------------------------
|
//-----------------------------------
|
||||||
|
#if defined(_WINDOWS)
|
||||||
static void FCEUD_MakePathDirs(const char *fname)
|
static void FCEUD_MakePathDirs(const char *fname)
|
||||||
{
|
{
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
|
@ -83,6 +89,7 @@ static void FCEUD_MakePathDirs(const char *fname)
|
||||||
|
|
||||||
} while(1);
|
} while(1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
//------------------------------
|
//------------------------------
|
||||||
|
|
||||||
class PathInfo
|
class PathInfo
|
||||||
|
|
Loading…
Reference in New Issue