From 91210c671fd3837a42a6358ecd21cb1e153c9855 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 25 Apr 2012 15:17:45 +0100 Subject: Ensure __STDC_FORMAT_MACROS is always defined first The client/common.h file defines __STDC_FORMAT_MACROS before including inttypes.h so that the PRI* macros get defined in C++. This is ignoring the possibility that other global includes may have already pulled in inttypes.h We need __STDC_FORMAT_MACROS to be defined before any header files are included. Putting it in config.h satisfies this, since config.h is always the first header --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f5b014f8..4b24c7df 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,8 @@ AC_CHECK_HEADERS([sys/time.h]) AC_CHECK_HEADERS([execinfo.h]) AC_FUNC_ALLOCA +AC_DEFINE([__STDC_FORMAT_MACROS],[],[Force definition of format macros for C++]) + SPICE_LT_VERSION=m4_format("%d:%d:%d", 1, 0, 2) AC_SUBST(SPICE_LT_VERSION) -- cgit v1.2.3