OSDN Git Service

[fixed] stb_image.c had a typedef that was incompatible with Android types.h.
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Fri, 17 Dec 2010 22:42:23 +0000 (22:42 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Fri, 17 Dec 2010 22:42:23 +0000 (22:42 +0000)
gdx/jni/gdx2d/gdx2d.c
gdx/jni/gdx2d/stb_image.c

index 0fb015e..c71b5af 100644 (file)
@@ -12,7 +12,6 @@
  */\r
 #include "gdx2d.h"\r
 #define STB_TRUETYPE_IMPLEMENTATION\r
-#define STBI_HEADER_FILE_ONLY\r
 #define STBI_NO_FAILURE_STRINGS\r
 #include "stb_image.c"\r
 #include "stb_truetype.h"\r
index c26b420..0121354 100644 (file)
@@ -441,7 +441,9 @@ typedef unsigned short uint16;
 typedef   signed short  int16;\r
 typedef unsigned int   uint32;\r
 typedef   signed int    int32;\r
+#ifndef __ANDROID__\r
 typedef unsigned int   uint;\r
+#endif\r
 \r
 // should produce compiler error if size is wrong\r
 typedef unsigned char validate_uint32[sizeof(uint32)==4 ? 1 : -1];\r