summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-03-02 16:58:50 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-03-02 16:58:50 +0000
commit6c6a674aa5603aff871f7b80daacdcb9fa2c1c32 (patch)
tree11951e97b382e1119484fdf85659b788d9849cb8 /SConstruct
parentc9be3dc72083c21e0dc1756310823236b34747ce (diff)
force use of -D_STDC_FORMAT_MACROS in compiler flags, so that #include <inttypes.h> just works anywhere
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@9034 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 173a646fed..7db65ab2ba 100644
--- a/SConstruct
+++ b/SConstruct
@@ -856,6 +856,12 @@ env.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FI
env.Append(CXXFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64")
#
+# we use inttypes.h format macros anywhere we want
+#
+env.Append(CCFLAGS="-D_STDC_FORMAT_MACROS")
+env.Append(CXXFLAGS="-D_STDC_FORMAT_MACROS")
+
+#
# fix scons nitpickiness on APPLE
#