summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2016-01-11 21:55:15 +0200
committerOded Gabbay <oded.gabbay@gmail.com>2016-01-11 23:28:23 +0200
commit647d8e95d17b32100995d806b9b2a26a35541042 (patch)
tree3eb29c25301706150fe4d899a5004aec70a1f7e9 /configure.ac
parentaa6aa39a8fb560ffe362970ef9f2f221661a30c9 (diff)
downloadexternal_mesa3d-647d8e95d17b32100995d806b9b2a26a35541042.zip
external_mesa3d-647d8e95d17b32100995d806b9b2a26a35541042.tar.gz
external_mesa3d-647d8e95d17b32100995d806b9b2a26a35541042.tar.bz2
configure.ac: always define __STDC_CONSTANT_MACROS
The ISO C99 standard (7.18.4) specifies that C++ implementations should define UINT64_C only when __STDC_CONSTANT_MACROS is defined. Because we now use UINT64_C in our cpp files (since commit 208bfc493debe0344d0b9cb93975981f14412628), we need to add this define. This also solves compilation errors with GCC 4.8.x on ppc64le machines. v2: add this define to SCons build system Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9c3d1a3..8d19dab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -245,7 +245,7 @@ _SAVE_LDFLAGS="$LDFLAGS"
_SAVE_CPPFLAGS="$CPPFLAGS"
dnl Compiler macros
-DEFINES="-D__STDC_LIMIT_MACROS"
+DEFINES="-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
AC_SUBST([DEFINES])
case "$host_os" in
linux*|*-gnu*|gnu*)