configure.ac: Always define __STDC_LIMIT_MACROS.
authorMatt Turner <mattst88@gmail.com>
Tue, 11 Aug 2015 22:21:03 +0000 (15:21 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 11 Aug 2015 22:21:03 +0000 (15:21 -0700)
... 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@vmware.com>
configure.ac

index 36197d3396a1c8ed69872549c307c8d35c5e9c07..4e751e3682935388b2ae48825cd695ec11edd695 100644 (file)
@@ -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*)