Use stdint.h when available, otherwise define the stuff ourselves.
SVN revision: 9466
This commit is contained in:
parent
5f6c023047
commit
c1b170777d
|
@ -33,16 +33,10 @@
|
||||||
/* The ISO C99 defines the int16_t and int_32t types. If the compiler got
|
/* The ISO C99 defines the int16_t and int_32t types. If the compiler got
|
||||||
* here, these types are probably undefined.
|
* here, these types are probably undefined.
|
||||||
*/
|
*/
|
||||||
# ifndef __int16_t_defined
|
# ifndef HAVE_STDINT_H
|
||||||
typedef short int int16_t;
|
typedef short int int16_t;
|
||||||
# endif
|
|
||||||
# ifndef __uint16_t_defined
|
|
||||||
typedef unsigned short int uint16_t;
|
typedef unsigned short int uint16_t;
|
||||||
# endif
|
|
||||||
# ifndef __int32_t_defined
|
|
||||||
typedef int int32_t;
|
typedef int int32_t;
|
||||||
# endif
|
|
||||||
# ifndef __uint32_t_defined
|
|
||||||
typedef unsigned int uint32_t;
|
typedef unsigned int uint32_t;
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -56,6 +56,10 @@
|
||||||
# define BYTE_ORDER LITTLE_ENDIAN
|
# define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_STDINT_H
|
||||||
|
#include <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* _MAX_PATH is sometimes called differently and it may be in limits.h instead
|
/* _MAX_PATH is sometimes called differently and it may be in limits.h instead
|
||||||
* stdio.h.
|
* stdio.h.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue