Use stdint.h when available, otherwise define the stuff ourselves.

SVN revision: 9466
This commit is contained in:
rbdpngn 2004-03-25 06:35:38 +00:00 committed by rbdpngn
parent 5f6c023047
commit c1b170777d
2 changed files with 5 additions and 7 deletions

View File

@ -33,16 +33,10 @@
/* The ISO C99 defines the int16_t and int_32t types. If the compiler got
* here, these types are probably undefined.
*/
# ifndef __int16_t_defined
# ifndef HAVE_STDINT_H
typedef short int int16_t;
# endif
# ifndef __uint16_t_defined
typedef unsigned short int uint16_t;
# endif
# ifndef __int32_t_defined
typedef int int32_t;
# endif
# ifndef __uint32_t_defined
typedef unsigned int uint32_t;
# endif
#endif

View File

@ -56,6 +56,10 @@
# define BYTE_ORDER LITTLE_ENDIAN
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
/* _MAX_PATH is sometimes called differently and it may be in limits.h instead
* stdio.h.
*/