diff include/SDL_compat.h @ 4943:f65299ded39c

Use a typedef instead of a #define, to handle syntax like: SDL_TextureID a, b
author Sam Lantinga <slouken@libsdl.org>
date Sat, 01 Jan 2011 19:46:36 -0800
parents aa8888658021
children e8916fe9cfc8
line wrap: on
line diff
--- a/include/SDL_compat.h	Sat Jan 01 19:38:56 2011 -0800
+++ b/include/SDL_compat.h	Sat Jan 01 19:46:36 2011 -0800
@@ -327,8 +327,9 @@
 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
 extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
 
-#define SDL_TextureID SDL_Texture*
-#define SDL_WindowID SDL_Window*
+typedef SDL_Texture* SDL_TextureID;
+typedef SDL_Window* SDL_WindowID;
+
 #define SDL_RenderPoint SDL_RenderDrawPoint
 #define SDL_RenderLine SDL_RenderDrawLine
 #define SDL_RenderFill(X)  (X) ? SDL_RenderFillRect(X) : SDL_RenderClear()