From cff6142bd036ac1b18cbf928a642ca1f04700ae0 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Thu, 10 Oct 2002 19:36:39 +0000 Subject: [PATCH] ok, this seems to work --- flexint.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/flexint.h b/flexint.h index 011305c..98974eb 100644 --- a/flexint.h +++ b/flexint.h @@ -3,34 +3,35 @@ #ifndef FLEXINT_H #define FLEXINT_H -#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901 -#include +#ifndef FLEX_NEED_INTEGRAL_TYPE_DEFINITIONS +#include #else /* Exact integral types. */ /* Signed. */ -#define int8_t signed char -#define int16_t short int -#define int32_t int +typedef signed char int8_t; +typedef short int int16_t; +typedef int int32_t; # if __WORDSIZE == 64 || defined __arch64__ -#define int64_t long int +typedef long int int64_t; # else -#define int64_t long long int +typedef long long int int64_t; # endif /* Unsigned. */ -#define uint8_t unsigned char -#define uint16_t unsigned short int -#define uint32_t unsigned int +typedef unsigned char uint8_t; +typedef unsigned short int uint16_t; +typedef unsigned int uint32_t; #if __WORDSIZE == 64 || defined __arch64__ -#define uint64_t unsigned long int +typedef unsigned long int uint64_t; #else -#define uint64_t unsigned long long int +typedef unsigned long long int uint64_t; #endif +#endif /* FLEX_NEED_INTEGRAL_TYPE_DEFINITIONS */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -61,6 +62,5 @@ #define UINT32_MAX (4294967295U) #endif -#endif /* not C99 system */ #endif /* ! FLEXINT_H */ -- 2.40.0