summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-04-25 15:17:45 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-04-26 18:46:52 +0100
commit91210c671fd3837a42a6358ecd21cb1e153c9855 (patch)
treea6d31203d929153c138e7fa0bac07b6ba1a51221 /client
parent5e15aa74c65892335e6533d6ee86cc07588e5a17 (diff)
downloadspice-91210c671fd3837a42a6358ecd21cb1e153c9855.tar.gz
spice-91210c671fd3837a42a6358ecd21cb1e153c9855.tar.xz
spice-91210c671fd3837a42a6358ecd21cb1e153c9855.zip
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
Diffstat (limited to 'client')
-rw-r--r--client/common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/client/common.h b/client/common.h
index e9a7ea8a..ca3609f8 100644
--- a/client/common.h
+++ b/client/common.h
@@ -26,7 +26,6 @@
#include <errno.h>
#endif
-#define __STDC_FORMAT_MACROS
#ifndef _WIN32
#include <inttypes.h>
#endif