Mesa (master): mesa: Remove MSVC stdint typedefs from compiler.h.

Vinson Lee vlee at kemper.freedesktop.org
Thu Aug 4 18:06:43 PDT 2011


Module: Mesa
Branch: master
Commit: a48118e510fcbb57634a7869cb628123fa8c3f2e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a48118e510fcbb57634a7869cb628123fa8c3f2e

Author: Vinson Lee <vlee at vmware.com>
Date:   Thu Aug  4 18:04:44 2011 -0700

mesa: Remove MSVC stdint typedefs from compiler.h.

MSVC can now include the stdint.h at include/c99/stdint.h.

---

 src/mesa/main/compiler.h |   24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)

diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index d736fdf..ee7d0b2 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -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>
 
 
 /**



More information about the mesa-commit mailing list