Merge pull request #58 from orbea/win32

win32 libretro build fixes
This commit is contained in:
AZO 2018-09-02 21:52:50 +09:00 committed by GitHub
commit c03e968385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -187,7 +187,7 @@ short file_rename(const char *existpath, const char *newpath) {
short file_dircreate(const char *path) {
#if !(defined(__LIBRETRO__) && defined(VITA))
#if defined(WIN32) && (!defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR))
#if (defined(__LIBRETRO__) && defined(_WIN32)) || (defined(WIN32) && (!defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)))
return((short)mkdir(path));
#else
return((short)mkdir(path, 0777));
@ -200,7 +200,6 @@ short file_dirdelete(const char *path) {
return((short)rmdir(path));
}
/* カレントファイル操作 */
void file_setcd(const char *exepath) {

View File

@ -240,7 +240,9 @@ typedef SINT32 FILELEN;
//#define UINT32_TO_PTR(v) GUINT_TO_POINTER((UINT32)(v))
//outdated things to ignore
#if !defined(FASTCALL)
#define FASTCALL
#endif
#define CPUCALL
#define MEMCALL
#define DMACCALL