[Mesa-dev] [PATCH 3/9] autoconf: set all __STDC_*_MACROS

Emil Velikov emil.l.velikov at gmail.com
Thu Jan 26 13:24:04 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Analogous to previous commit(s), with a minor detail - here we set the
macros when building both C and C++ sources.

Resolving that is a more challenging task that we'll sort out another
day.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 64ace9dbcb..5f98c57d78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,7 +259,7 @@ _SAVE_LDFLAGS="$LDFLAGS"
 _SAVE_CPPFLAGS="$CPPFLAGS"
 
 dnl Compiler macros
-DEFINES="-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
+DEFINES="-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
 AC_SUBST([DEFINES])
 android=no
 case "$host_os" in
-- 
2.11.0



More information about the mesa-dev mailing list