From cbee37ed21a35e0245cd56a82c662655e7583a73 Mon Sep 17 00:00:00 2001 From: Bob Pendleton Date: Thu, 4 Jun 2009 21:00:45 +0000 Subject: [PATCH] Added an ifdef so that if you #define SDL_NO_COMPAT before you include SDL.h then SDL_compat.h will never be included in your code. This is useful for making sure that your code uses only SDL 1.3 features. It is also handy for finding things that are in SDL_compat.h that belong elsewhere. --- include/SDL_compat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/SDL_compat.h b/include/SDL_compat.h index 109dfb374..81988fb7d 100644 --- a/include/SDL_compat.h +++ b/include/SDL_compat.h @@ -22,6 +22,16 @@ /* This file contains functions for backwards compatibility with SDL 1.2 */ +/* + #define SDL_NO_COMPAT to prevent SDL_compat.h from being included. + SDL_NO_COMPAT is intended to make it easier to covert SDL 1.2 code to + SDL 1.3/2.0 +*/ + +#ifdef SDL_NO_COMPAT +#define _SDL_compat_h +#endif + #ifndef _SDL_compat_h #define _SDL_compat_h