summaryrefslogtreecommitdiff
path: root/common/defines.h
diff options
context:
space:
mode:
authorleo2000-01-01 21:11:39 +0000
committerleo2000-01-01 21:11:39 +0000
commit905cb8cbbe9a2c59784d95899df948dd9e50c069 (patch)
tree60c892499c58f12059c718b7a815eeda558cb9bc /common/defines.h
parent57cf61ef70f435674e17de7ac13388ba3ee100ac (diff)
Changes to help porting to other platforms
git-svn-id: http://svn.leocad.org/trunk@44 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/defines.h')
-rw-r--r--common/defines.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/defines.h b/common/defines.h
index 25366a8..59676ae 100644
--- a/common/defines.h
+++ b/common/defines.h
@@ -7,11 +7,11 @@
/////////////////////////////////////////////////////////////////////////////
// System specific
-#if ! ( defined( _WINDOWS ) || defined( _LINUX ) )
+#if ! ( defined( LC_WINDOWS ) || defined( LC_LINUX ) || defined( LC_MACINTOSH ))
#error YOU NEED TO DEFINE YOUR OS
#endif
-#ifdef _WINDOWS
+#ifdef LC_WINDOWS
#define LC_MAXPATH _MAX_PATH
#define KEY_SHIFT VK_SHIFT
#define KEY_CONTROL VK_CONTROL
@@ -29,7 +29,7 @@
#define KEY_MINUS VK_SUBTRACT
#endif
-#ifdef _LINUX
+#ifdef LC_LINUX
#define LC_MAXPATH 1024 //FILENAME_MAX
#define KEY_SHIFT 0x01
#define KEY_CONTROL 0x02
@@ -52,7 +52,7 @@ char* strlwr(char* string);
#endif
// Endianess handling (files are little endian).
-#ifdef _BIG_ENDIAN
+#ifdef LC_BIG_ENDIAN
unsigned short SwapSHORT(unsigned short x)
{ return (x>>8) | (x<<8); }
unsigned long SwapLONG(unsigned long x)