egl: Don't attempt to redefine stdint.h types with VS 2010.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 1 May 2014 13:16:08 +0000 (14:16 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 2 May 2014 21:04:47 +0000 (22:04 +0100)
Just include stdint.h.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/egl/main/eglcompiler.h

index 53dab54384ab97d109395af3e52c6aee81834516..5ea83d6145a11f7e3561888596418d19e4423595 100644 (file)
@@ -37,7 +37,8 @@
 /**
  * Get standard integer types
  */
-#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
+    (defined(_MSC_VER) && _MSC_VER >= 1600)
 #  include <stdint.h>
 #elif defined(_MSC_VER)
    typedef __int8             int8_t;