mesa: Remove MSVC stdint typedefs from compiler.h.
authorVinson Lee <vlee@vmware.com>
Fri, 5 Aug 2011 01:04:44 +0000 (18:04 -0700)
committerVinson Lee <vlee@vmware.com>
Fri, 5 Aug 2011 01:06:18 +0000 (18:06 -0700)
MSVC can now include the stdint.h at include/c99/stdint.h.

src/mesa/main/compiler.h

index d736fdfc58a2874f61524b5dfd9eb214e384deb0..ee7d0b2f88056164f76fcca4ad32c5db3bcefe1a 100644 (file)
@@ -60,29 +60,7 @@ extern "C" {
 /**
  * Get standard integer types
  */
-#if defined(_MSC_VER)
-   typedef __int8             int8_t;
-   typedef unsigned __int8    uint8_t;
-   typedef __int16            int16_t;
-   typedef unsigned __int16   uint16_t;
-   typedef __int32            int32_t;
-   typedef unsigned __int32   uint32_t;
-   typedef __int64            int64_t;
-   typedef unsigned __int64   uint64_t;
-
-#  if defined(_WIN64)
-     typedef __int64            intptr_t;
-     typedef unsigned __int64   uintptr_t;
-#  else
-     typedef __int32            intptr_t;
-     typedef unsigned __int32   uintptr_t;
-#  endif
-
-#  define INT64_C(__val) __val##i64
-#  define UINT64_C(__val) __val##ui64
-#else
-#  include <stdint.h>
-#endif
+#include <stdint.h>
 
 
 /**