summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Rossi <[email protected]>2017-05-03 14:35:14 -0500
committerEmil Velikov <[email protected]>2017-05-11 13:52:20 +0100
commitf21454eaa57fb930dcd9e602a11385bcb39b58cf (patch)
tree4b51c4ad5d7450d5e715290430626123666dedd1
parent7e907d8f7f4490e53775267696523a092a8f6363 (diff)
Android: define required __STDC* macros as cflags
Necessary to fix the following radeonsi building errors: In file included from external/mesa/src/gallium/drivers/radeonsi/si_blit.c:24: In file included from external/mesa/src/gallium/drivers/radeonsi/si_pipe.h:29: In file included from external/mesa/src/gallium/drivers/radeonsi/si_shader.h:71: In file included from external/llvm/include/llvm-c/Core.h:18: In file included from external/llvm/include/llvm-c/ErrorHandling.h:17: In file included from external/llvm/include/llvm-c/Types.h:17: external/llvm/include/llvm/Support/DataTypes.h:49:3: error: "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h" ^ external/llvm/include/llvm/Support/DataTypes.h:53:3: error: "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h" ^ 2 errors generated. [Emil Velikov: add inline comment about the defines] Signed-off-by: Emil Velikov <[email protected]>
-rw-r--r--Android.common.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.common.mk b/Android.common.mk
index 34db6770c5b..98d98ee7ce5 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -40,8 +40,13 @@ LOCAL_CFLAGS += \
-DPACKAGE_VERSION=\"$(MESA_VERSION)\" \
-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"
+# XXX: The following __STDC_*_MACROS defines should not be needed.
+# It's likely due to a bug elsewhere, but let's temporarily add them
+# here to fix the radeonsi build.
LOCAL_CFLAGS += \
-DENABLE_SHADER_CACHE \
+ -D__STDC_CONSTANT_MACROS \
+ -D__STDC_LIMIT_MACROS \
-DHAVE___BUILTIN_EXPECT \
-DHAVE___BUILTIN_FFS \
-DHAVE___BUILTIN_FFSLL \