# HG changeset patch # User Bob Pendleton # Date 1244149245 0 # Node ID c5b2884c26b454c2485004e3ad58738563d700fa # Parent a252014ce27ddc866d799b25fa12edd5b6fd2e1b 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. diff -r a252014ce27d -r c5b2884c26b4 include/SDL_compat.h --- a/include/SDL_compat.h Wed Jun 03 10:40:44 2009 +0000 +++ b/include/SDL_compat.h Thu Jun 04 21:00:45 2009 +0000 @@ -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