comparison include/SDL_compat.h @ 3164:c5b2884c26b4

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.
author Bob Pendleton <bob@pendleton.com>
date Thu, 04 Jun 2009 21:00:45 +0000
parents 62d4992e5a92
children d3baf5ac4e37
comparison
equal deleted inserted replaced
3163:a252014ce27d 3164:c5b2884c26b4
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 22
23 /* This file contains functions for backwards compatibility with SDL 1.2 */ 23 /* This file contains functions for backwards compatibility with SDL 1.2 */
24
25 /*
26 #define SDL_NO_COMPAT to prevent SDL_compat.h from being included.
27 SDL_NO_COMPAT is intended to make it easier to covert SDL 1.2 code to
28 SDL 1.3/2.0
29 */
30
31 #ifdef SDL_NO_COMPAT
32 #define _SDL_compat_h
33 #endif
24 34
25 #ifndef _SDL_compat_h 35 #ifndef _SDL_compat_h
26 #define _SDL_compat_h 36 #define _SDL_compat_h
27 37
28 #include "SDL_video.h" 38 #include "SDL_video.h"