Fixed bug #815
authorSam Lantinga <slouken@libsdl.org>
Tue, 15 Dec 2009 20:14:50 +0000
changeset 35697f743e9b0b5b
parent 3568 8c72321542f6
child 3570 7812d3e9564e
Fixed bug #815

Daniele Forghieri 2009-10-12 02:57:03 PDT

Patch to use stdlib.h with Open Watcom

Open Watcom 1.8 has <stdlib.h> so instead of patch the single part when stdlib
features are used we use directly the include file as with GCC.
include/SDL_config_win32.h
include/SDL_opengl.h
     1.1 --- a/include/SDL_config_win32.h	Tue Dec 15 20:11:29 2009 +0000
     1.2 +++ b/include/SDL_config_win32.h	Tue Dec 15 20:14:50 2009 +0000
     1.3 @@ -28,7 +28,7 @@
     1.4  /* This is a set of defines to configure the SDL features */
     1.5  
     1.6  #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
     1.7 -#if defined(__GNUC__) || defined(__DMC__)
     1.8 +#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
     1.9  #define HAVE_STDINT_H	1
    1.10  #elif defined(_MSC_VER)
    1.11  typedef signed __int8 int8_t;
     2.1 --- a/include/SDL_opengl.h	Tue Dec 15 20:11:29 2009 +0000
     2.2 +++ b/include/SDL_opengl.h	Tue Dec 15 20:14:50 2009 +0000
     2.3 @@ -4447,7 +4447,7 @@
     2.4  typedef long int int32_t;
     2.5  typedef long long int int64_t;
     2.6  typedef unsigned long long int uint64_t;
     2.7 -#elif defined(_WIN32) && defined(__GNUC__)
     2.8 +#elif defined(_WIN32) && (defined(__GNUC__) || defined(__WATCOMC__))
     2.9  #include <stdint.h>
    2.10  #elif defined(_WIN32)
    2.11  typedef __int32 int32_t;