Patch from David Yeo to conditionally include <inttypes.h>.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Feb 2012 00:06:12 +0000 (11:06 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Feb 2012 00:06:12 +0000 (11:06 +1100)
examples/c/decode/file/main.c
examples/c/encode/file/main.c
src/metaflac/operations.c
src/metaflac/operations_shorthand_cuesheet.c
src/metaflac/operations_shorthand_streaminfo.c
src/share/grabbag/cuesheet.c
src/test_libFLAC/encoders.c
src/test_libFLAC/metadata_object.c
src/test_libs_common/metadata_utils.c
src/test_seeking/main.c

index e5138b4f9a08f0cf3e9a26c8ab68ac76d161785d..f7efd9a97db26bd20d589c2651df2be7cfad6175 100644 (file)
@@ -28,6 +28,9 @@
 #  include <config.h>
 #endif
 
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include "FLAC/stream_decoder.h"
index 1baad1d32bbdbc2b4dcb5bba91eeaabd23abc361..bce973271cff135659db59b9967d0a971515db1f 100644 (file)
@@ -28,6 +28,9 @@
 #  include <config.h>
 #endif
 
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 88e469a5e054b13d3a89c1fef1b52522d79f204d..369883ab341da36b1c511ce4ca86b3133cbcb588 100644 (file)
@@ -27,6 +27,9 @@
 #include "FLAC/metadata.h"
 #include "share/alloc.h"
 #include "share/grabbag.h"
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index f4142359f86e9cd8845e18d57699c87cb9cc152c..dadb53ba91fc7840ad151f4d8fbfa014de5239b4 100644 (file)
@@ -21,6 +21,9 @@
 #endif
 
 #include <errno.h>
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <stdio.h> /* for snprintf() */
 #include <string.h>
 #include "options.h"
index b4471189b9f671eb5ffeee2673e3f5a816d353ee..10194596ca5b1e4c71b97c21d7f46daae87722d5 100644 (file)
@@ -24,6 +24,9 @@
 #include "utils.h"
 #include "FLAC/assert.h"
 #include "FLAC/metadata.h"
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <string.h>
 #include "operations_shorthand.h"
 
index 3d7e3587c5967873cdb4168db64d673dd45f464e..0299cba15a4046327522e9f9d25a771119b0be64 100644 (file)
@@ -22,6 +22,9 @@
 
 #include "share/grabbag.h"
 #include "FLAC/assert.h"
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 326cdef45e760fe4db44b4801076c28e89c0cab9..403e808cf4212ae5b4220bce61e027debe294fe5 100644 (file)
@@ -21,6 +21,9 @@
 #endif
 
 #include <errno.h>
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 571164dd32429619fdfa7a12c1f5c2be663dfa10..8e3ba7a0979fe860578f61f294047a73d082737d 100644 (file)
@@ -24,6 +24,9 @@
 #include "FLAC/metadata.h"
 #include "test_libs_common/metadata_utils.h"
 #include "metadata.h"
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h> /* for malloc() */
 #include <string.h> /* for memcmp() */
index a95516376a5c08b77642d2e6a903930800588ff3..ac73db965ba893dda40df77b0ed5463615e26534 100644 (file)
@@ -26,6 +26,9 @@
 
 #include "FLAC/metadata.h"
 #include "test_libs_common/metadata_utils.h"
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h> /* for malloc() */
 #include <string.h> /* for memcmp() */
index 734d606be532dee04567204389be0931f293b6c8..5a56bf9925cd8d67671a5cb8e0b9500d5c6bfc0c 100644 (file)
@@ -20,6 +20,9 @@
 #  include <config.h>
 #endif
 
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>