# HG changeset patch # User Sam Lantinga # Date 1297541040 28800 # Node ID 3c94c559f5c209de34efe365e0d89f5d9fc2f228 # Parent 73f8030f0c72dcf5ff34d667f7efd00f8164466a changeset: 5272:cb08ef104ac4 tag: tip user: Martin Decky date: Sat Feb 12 20:53:06 2011 +0100 summary: improve header files compatibility with SDL 1.2 applications (namely QEMU) diff -r 73f8030f0c72 -r 3c94c559f5c2 include/SDL_hints.h --- a/include/SDL_hints.h Sat Feb 12 11:43:22 2011 -0800 +++ b/include/SDL_hints.h Sat Feb 12 12:04:00 2011 -0800 @@ -154,7 +154,7 @@ * * This function is called during SDL_Quit() to free stored hints. */ -extern DECLSPEC void SDLCALL SDL_ClearHints(); +extern DECLSPEC void SDLCALL SDL_ClearHints(void); /* Ends C function definitions when using C++ */ diff -r 73f8030f0c72 -r 3c94c559f5c2 include/SDL_video.h --- a/include/SDL_video.h Sat Feb 12 11:43:22 2011 -0800 +++ b/include/SDL_video.h Sat Feb 12 12:04:00 2011 -0800 @@ -603,16 +603,6 @@ extern DECLSPEC int SDLCALL SDL_GetWindowGrab(SDL_Window * window); /** - * \brief Get driver specific information about a window. - * - * \note Include SDL_syswm.h for the declaration of SDL_SysWMinfo. - */ -struct SDL_SysWMinfo; -extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo(SDL_Window * window, - struct SDL_SysWMinfo - *info); - -/** * \brief Destroy a window. */ extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window); diff -r 73f8030f0c72 -r 3c94c559f5c2 src/video/SDL_sysvideo.h --- a/src/video/SDL_sysvideo.h Sat Feb 12 11:43:22 2011 -0800 +++ b/src/video/SDL_sysvideo.h Sat Feb 12 12:04:00 2011 -0800 @@ -114,6 +114,9 @@ void *driverdata; }; +/* Forward declaration */ +struct SDL_SysWMinfo; + /* Define the SDL video driver structure */ #define _THIS SDL_VideoDevice *_this