config: Try to use stdint.h with Borland C.

(This probably isn't right on truly ancient versions of Borland C, but it
should cover things from the last decade or so, I hope.)

(possibly) Fixes #1673.
This commit is contained in:
Ryan C. Gordon 2021-09-20 20:43:39 -04:00
parent 3b2fbb1cb7
commit f5e636a621
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
2 changed files with 2 additions and 2 deletions

View File

@ -509,7 +509,7 @@ typedef unsigned long uintptr_t;
# endif /* if (stdint.h isn't available) */ # endif /* if (stdint.h isn't available) */
#else /* __WIN32__ */ #else /* __WIN32__ */
# if !defined(_STDINT_H_) && !defined(HAVE_STDINT_H) && !defined(_HAVE_STDINT_H) # if !defined(_STDINT_H_) && !defined(HAVE_STDINT_H) && !defined(_HAVE_STDINT_H)
# if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__) # if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__CODEGEARC__)
#define HAVE_STDINT_H 1 #define HAVE_STDINT_H 1
# elif defined(_MSC_VER) # elif defined(_MSC_VER)
typedef signed __int8 int8_t; typedef signed __int8 int8_t;

View File

@ -28,7 +28,7 @@
/* This is a set of defines to configure the SDL features */ /* This is a set of defines to configure the SDL features */
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__) || defined(__clang__) #if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__) || defined(__clang__) || defined(__BORLANDC__) || defined(__CODEGEARC__)
#define HAVE_STDINT_H 1 #define HAVE_STDINT_H 1
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
typedef signed __int8 int8_t; typedef signed __int8 int8_t;