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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403621
This commit is contained in:
parent
f2f1af2732
commit
de866fcecb
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue