From c1b170777d2d334ad7d19f5a45107c8a32aff293 Mon Sep 17 00:00:00 2001 From: rbdpngn Date: Thu, 25 Mar 2004 06:35:38 +0000 Subject: [PATCH] Use stdint.h when available, otherwise define the stuff ourselves. SVN revision: 9466 --- legacy/embryo/src/bin/embryo_cc_amx.h | 8 +------- legacy/embryo/src/bin/embryo_cc_osdefs.h | 4 ++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/legacy/embryo/src/bin/embryo_cc_amx.h b/legacy/embryo/src/bin/embryo_cc_amx.h index dbba0297ed..9bbae2be3b 100644 --- a/legacy/embryo/src/bin/embryo_cc_amx.h +++ b/legacy/embryo/src/bin/embryo_cc_amx.h @@ -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 diff --git a/legacy/embryo/src/bin/embryo_cc_osdefs.h b/legacy/embryo/src/bin/embryo_cc_osdefs.h index 8b87e0acc5..b668987f30 100644 --- a/legacy/embryo/src/bin/embryo_cc_osdefs.h +++ b/legacy/embryo/src/bin/embryo_cc_osdefs.h @@ -56,6 +56,10 @@ # define BYTE_ORDER LITTLE_ENDIAN #endif +#ifdef HAVE_STDINT_H +#include +#endif + /* _MAX_PATH is sometimes called differently and it may be in limits.h instead * stdio.h. */