[flac-dev] [PATCH] Include inttypes.h for PRIu64
Dave Yeo
dave.r.yeo at gmail.com
Thu Feb 2 21:06:26 PST 2012
---
examples/c/decode/file/main.c | 3 +++
examples/c/encode/file/main.c | 3 +++
src/metaflac/operations.c | 3 +++
src/metaflac/operations_shorthand_cuesheet.c | 3 +++
src/metaflac/operations_shorthand_streaminfo.c | 3 +++
src/share/grabbag/cuesheet.c | 3 +++
src/test_libFLAC/encoders.c | 3 +++
src/test_libFLAC/metadata_object.c | 3 +++
src/test_libs_common/metadata_utils.c | 3 +++
src/test_seeking/main.c | 3 +++
10 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/examples/c/decode/file/main.c b/examples/c/decode/file/main.c
index e5138b4..f7efd9a 100644
--- a/examples/c/decode/file/main.c
+++ b/examples/c/decode/file/main.c
@@ -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"
diff --git a/examples/c/encode/file/main.c b/examples/c/encode/file/main.c
index 1baad1d..bce9732 100644
--- a/examples/c/encode/file/main.c
+++ b/examples/c/encode/file/main.c
@@ -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>
diff --git a/src/metaflac/operations.c b/src/metaflac/operations.c
index 88e469a..369883a 100644
--- a/src/metaflac/operations.c
+++ b/src/metaflac/operations.c
@@ -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>
diff --git a/src/metaflac/operations_shorthand_cuesheet.c b/src/metaflac/operations_shorthand_cuesheet.c
index f414235..dadb53b 100644
--- a/src/metaflac/operations_shorthand_cuesheet.c
+++ b/src/metaflac/operations_shorthand_cuesheet.c
@@ -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"
diff --git a/src/metaflac/operations_shorthand_streaminfo.c b/src/metaflac/operations_shorthand_streaminfo.c
index b447118..1019459 100644
--- a/src/metaflac/operations_shorthand_streaminfo.c
+++ b/src/metaflac/operations_shorthand_streaminfo.c
@@ -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"
diff --git a/src/share/grabbag/cuesheet.c b/src/share/grabbag/cuesheet.c
index 3d7e358..0299cba 100644
--- a/src/share/grabbag/cuesheet.c
+++ b/src/share/grabbag/cuesheet.c
@@ -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>
diff --git a/src/test_libFLAC/encoders.c b/src/test_libFLAC/encoders.c
index 326cdef..403e808 100644
--- a/src/test_libFLAC/encoders.c
+++ b/src/test_libFLAC/encoders.c
@@ -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>
diff --git a/src/test_libFLAC/metadata_object.c b/src/test_libFLAC/metadata_object.c
index 571164d..8e3ba7a 100644
--- a/src/test_libFLAC/metadata_object.c
+++ b/src/test_libFLAC/metadata_object.c
@@ -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() */
diff --git a/src/test_libs_common/metadata_utils.c b/src/test_libs_common/metadata_utils.c
index a955163..ac73db9 100644
--- a/src/test_libs_common/metadata_utils.c
+++ b/src/test_libs_common/metadata_utils.c
@@ -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() */
diff --git a/src/test_seeking/main.c b/src/test_seeking/main.c
index 734d606..5a56bf9 100644
--- a/src/test_seeking/main.c
+++ b/src/test_seeking/main.c
@@ -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>
--
1.7.2.3
More information about the flac-dev
mailing list