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 e5138b4..f7efd9a 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 1baad1d..bce9732 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 88e469a..369883a 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 f414235..dadb53b 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 b447118..1019459 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 3d7e358..0299cba 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 326cdef..403e808 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 571164d..8e3ba7a 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 a955163..ac73db9 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 734d606..5a56bf9 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>