# HG changeset patch # User Sam Lantinga # Date 1260908090 0 # Node ID 7f743e9b0b5b30460339c48617ec7c4c41550453 # Parent 8c72321542f62c47f04475b02fdab0f92b7c587f 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 so instead of patch the single part when stdlib features are used we use directly the include file as with GCC. diff -r 8c72321542f6 -r 7f743e9b0b5b include/SDL_config_win32.h --- a/include/SDL_config_win32.h Tue Dec 15 20:11:29 2009 +0000 +++ b/include/SDL_config_win32.h Tue Dec 15 20:14:50 2009 +0000 @@ -28,7 +28,7 @@ /* This is a set of defines to configure the SDL features */ #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) -#if defined(__GNUC__) || defined(__DMC__) +#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__) #define HAVE_STDINT_H 1 #elif defined(_MSC_VER) typedef signed __int8 int8_t; diff -r 8c72321542f6 -r 7f743e9b0b5b include/SDL_opengl.h --- a/include/SDL_opengl.h Tue Dec 15 20:11:29 2009 +0000 +++ b/include/SDL_opengl.h Tue Dec 15 20:14:50 2009 +0000 @@ -4447,7 +4447,7 @@ typedef long int int32_t; typedef long long int int64_t; typedef unsigned long long int uint64_t; -#elif defined(_WIN32) && defined(__GNUC__) +#elif defined(_WIN32) && (defined(__GNUC__) || defined(__WATCOMC__)) #include #elif defined(_WIN32) typedef __int32 int32_t;