Skip to content

Commit

Permalink
* (bug 2977) use MSVC compatiable pre-processors and also include <io…
Browse files Browse the repository at this point in the history
….h> for

  int types
  • Loading branch information
tjdub committed Jan 19, 2007
1 parent c586def commit cf2875e
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions code/qcommon/q_shared.h
Expand Up @@ -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;
Expand Down

0 comments on commit cf2875e

Please sign in to comment.