From e90c5b978f043f9bfe33458974f5b1680e4badc9 Mon Sep 17 00:00:00 2001 From: Tom Kacvinsky Date: Mon, 26 Mar 2001 23:46:06 +0000 Subject: [PATCH] Changed tests for sizes of short, ints, and longs to use the suffix U on the hexdecimal constants to avoid problems with HP-UX's ANSI compliant C compiler (c89). The changes work well with Sun's Forte compilers. --- include/freetype/config/ftconfig.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/freetype/config/ftconfig.h b/include/freetype/config/ftconfig.h index 49e90f875..2c2d38138 100644 --- a/include/freetype/config/ftconfig.h +++ b/include/freetype/config/ftconfig.h @@ -62,20 +62,20 @@ FT_BEGIN_HEADER #include /* The number of bytes in an `int' type. */ -#if UINT_MAX == 0xFFFFFFFF +#if UINT_MAX == 0xFFFFFFFFU #define FT_SIZEOF_INT 4 -#elif UINT_MAX == 0xFFFF +#elif UINT_MAX == 0xFFFFU #define FT_SIZEOF_INT 2 -#elif UINT_MAX > 0xFFFFFFFF && UINT_MAX == 0xFFFFFFFFFFFFFFFF +#elif UINT_MAX > 0xFFFFFFFFU && UINT_MAX == 0xFFFFFFFFFFFFFFFFU #define FT_SIZEOF_INT 8 #else #error "Unsupported number of bytes in `int' type!" #endif /* The number of bytes in a `long' type. */ -#if ULONG_MAX == 0xFFFFFFFF +#if ULONG_MAX == 0xFFFFFFFFU #define FT_SIZEOF_LONG 4 -#elif ULONG_MAX > 0xFFFFFFFF && ULONG_MAX == 0xFFFFFFFFFFFFFFFF +#elif ULONG_MAX > 0xFFFFFFFFU && ULONG_MAX == 0xFFFFFFFFFFFFFFFFU #define FT_SIZEOF_LONG 8 #else #error "Unsupported number of bytes in `long' type!"