r1034 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Jan 19 14:31:20 EST 2007


Author: tjw
Date: 2007-01-19 14:31:19 -0500 (Fri, 19 Jan 2007)
New Revision: 1034

Modified:
   trunk/code/qcommon/q_shared.h
Log:
* (bug 2977) use MSVC compatiable pre-processors and also include <io.h> for
  int types


Modified: trunk/code/qcommon/q_shared.h
===================================================================
--- trunk/code/qcommon/q_shared.h	2007-01-17 20:32:00 UTC (rev 1033)
+++ trunk/code/qcommon/q_shared.h	2007-01-19 19:31:19 UTC (rev 1034)
@@ -114,18 +114,19 @@
 #ifdef Q3_VM
    typedef int intptr_t;
 #else
-# ifndef _MSC_VER
-#  include <stdint.h>
-# else
-   typedef __int64 int64_t;
-   typedef __int32 int32_t;
-   typedef __int16 int16_t;
-   typedef __int8 int8_t;
-   typedef unsigned __int64 uint64_t;
-   typedef unsigned __int32 uint32_t;
-   typedef unsigned __int16 uint16_t;
-   typedef unsigned __int8 uint8_t;
-# endif
+  #ifndef _MSC_VER
+    #include <stdint.h>
+  #else
+    #include <io.h>
+    typedef __int64 int64_t;
+    typedef __int32 int32_t;
+    typedef __int16 int16_t;
+    typedef __int8 int8_t;
+    typedef unsigned __int64 uint64_t;
+    typedef unsigned __int32 uint32_t;
+    typedef unsigned __int16 uint16_t;
+    typedef unsigned __int8 uint8_t;
+  #endif
 #endif
 
 typedef unsigned char 		byte;




More information about the quake3-commits mailing list