Avoiding <stdint.h> if not available. Trying to use <inttypes.h> in that case.

This commit is contained in:
Thomas Schmitt 2011-01-18 16:18:09 +01:00
parent 4e60feaeab
commit 84c0bd37ff
8 changed files with 58 additions and 0 deletions

View File

@ -11,7 +11,14 @@
#define LIBISO_BUFFER_H_ #define LIBISO_BUFFER_H_
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#else
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#endif
#define BLOCK_SIZE 2048 #define BLOCK_SIZE 2048

View File

@ -15,7 +15,14 @@
#include "util.h" #include "util.h"
#include "buffer.h" #include "buffer.h"
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#else
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#endif
#include <pthread.h> #include <pthread.h>
#define BLOCK_SIZE 2048 #define BLOCK_SIZE 2048

View File

@ -13,7 +13,13 @@
#include "stream.h" #include "stream.h"
#include "ecma119.h" #include "ecma119.h"
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#else
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#endif
struct Iso_File_Src struct Iso_File_Src
{ {

View File

@ -28,7 +28,15 @@
#define LIBISO_LIBISOFS_H_ #define LIBISO_LIBISOFS_H_
#include <sys/stat.h> #include <sys/stat.h>
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#else
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#endif
#include <stdlib.h> #include <stdlib.h>
struct burn_source; struct burn_source;

View File

@ -4,7 +4,15 @@
#endif #endif
#include <ctype.h> #include <ctype.h>
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#else
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#endif
#include <sys/types.h> #include <sys/types.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View File

@ -12,7 +12,14 @@
#include "../config.h" #include "../config.h"
#endif #endif
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#else
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -20,7 +20,15 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#else
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#endif
/** /**
* The extended information is a way to attach additional information to each * The extended information is a way to attach additional information to each

View File

@ -11,7 +11,14 @@
#ifndef LIBISO_UTIL_H_ #ifndef LIBISO_UTIL_H_
#define LIBISO_UTIL_H_ #define LIBISO_UTIL_H_
#ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#else
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#endif
#include <time.h> #include <time.h>
#ifndef MAX #ifndef MAX