diff options
author | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-01-19 19:31:19 +0000 |
---|---|---|
committer | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-01-19 19:31:19 +0000 |
commit | 65b4aa242a07b617563cfa88795e67a86055e737 (patch) | |
tree | 4cda86097d0097173e561fc7bf15c2713f2b0a46 /code | |
parent | bc1afda5729654e5b72556039a67fcf3f8e3fcb5 (diff) | |
download | ioquake3-aero-65b4aa242a07b617563cfa88795e67a86055e737.tar.gz ioquake3-aero-65b4aa242a07b617563cfa88795e67a86055e737.zip |
* (bug 2977) use MSVC compatiable pre-processors and also include <io.h> for
int types
git-svn-id: svn://svn.icculus.org/quake3/trunk@1034 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/qcommon/q_shared.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index f58d282..7dc87dc 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -114,18 +114,19 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #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; |