Mesa (master): configure.ac: Always define __STDC_LIMIT_MACROS.

Matt Turner mattst88 at kemper.freedesktop.org
Tue Aug 11 22:18:52 UTC 2015


Module: Mesa
Branch: master
Commit: 02a4fe22b137d4bc8378bedd8319109fd23a50e3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=02a4fe22b137d4bc8378bedd8319109fd23a50e3

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Aug 11 15:21:03 2015 -0700

configure.ac: Always define __STDC_LIMIT_MACROS.

... which ensures that we get defines like LONG_MAX in C++.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91591
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 36197d3..4e751e3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -235,7 +235,7 @@ _SAVE_LDFLAGS="$LDFLAGS"
 _SAVE_CPPFLAGS="$CPPFLAGS"
 
 dnl Compiler macros
-DEFINES=""
+DEFINES="-D__STDC_LIMIT_MACROS"
 AC_SUBST([DEFINES])
 case "$host_os" in
 linux*|*-gnu*|gnu*)




More information about the mesa-commit mailing list