aboutsummaryrefslogtreecommitdiff
path: root/source/port.h
diff options
context:
space:
mode:
authortwinaphex2018-02-21 13:49:45 +0100
committertwinaphex2018-02-21 13:49:45 +0100
commitea4775801b424594e309a3413815b67cc53d6ac1 (patch)
tree8b4e8b427cfca7128c8058da25591046ecb8da98 /source/port.h
parentb2859c8e0d5a7799058de685451ab8257d61ddcb (diff)
downloadsnes9x2005-ea4775801b424594e309a3413815b67cc53d6ac1.tar.gz
snes9x2005-ea4775801b424594e309a3413815b67cc53d6ac1.tar.bz2
snes9x2005-ea4775801b424594e309a3413815b67cc53d6ac1.zip
Update for MSVC
Diffstat (limited to 'source/port.h')
-rw-r--r--source/port.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/port.h b/source/port.h
index c2a9b7f..fcfe836 100644
--- a/source/port.h
+++ b/source/port.h
@@ -18,7 +18,7 @@
#include "pixform.h"
-#ifndef __WIN32__
+#ifndef _WIN32
#ifndef PATH_MAX
#define PATH_MAX 1024
@@ -46,7 +46,7 @@
void _makepath(char* path, const char* drive, const char* dir, const char* fname, const char* ext);
void _splitpath(const char* path, char* drive, char* dir, char* fname, char* ext);
-#else /* __WIN32__ */
+#else /* _WIN32 */
#define strcasecmp stricmp
#define strncasecmp strnicmp
#endif
@@ -54,7 +54,7 @@ void _splitpath(const char* path, char* drive, char* dir, char* fname, char* ext
#define SLASH_STR "/"
#define SLASH_CHAR '/'
-#if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__WIN32__) || defined(__alpha__)
+#if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(_XBOX1) || defined(__alpha__)
#define FAST_LSB_WORD_ACCESS
#elif defined(__MIPSEL__)
/* On little-endian MIPS, a 16-bit word can be read directly from an address