Browse Source

fix for compiling with gcc 6.1.1 on Arch Linux

ctrauma 9 năm trước cách đây
mục cha
commit
c5ffef5d5a

+ 2 - 0
Source/ThirdParty/TurboBadger/thirdparty/stb_image.h

@@ -354,7 +354,9 @@ STBIDEF void stbi_install_YCbCr_to_RGB(stbi_YCbCr_to_RGB_run func);
 #ifndef STBI_NO_STDIO
 #ifndef STBI_NO_STDIO
 #include <stdio.h>
 #include <stdio.h>
 #endif
 #endif
+#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
 #include <stdlib.h>
 #include <stdlib.h>
+#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
 #include <string.h>
 #include <string.h>
 #ifndef STBI_ASSERT
 #ifndef STBI_ASSERT
 #include <assert.h>
 #include <assert.h>