Patch from David Yeo to conditionally include <inttypes.h>.

This commit is contained in:
Erik de Castro Lopo 2012-02-04 11:06:12 +11:00
parent 08832d1133
commit d5bb4be5b4
10 changed files with 30 additions and 0 deletions

View 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"

View 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>

View 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>

View 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"

View 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"

View 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>

View 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>

View 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() */

View 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() */

View 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>