changeset: 5272:cb08ef104ac4
authorSam Lantinga <slouken@libsdl.org>
Sat, 12 Feb 2011 12:04:00 -0800
changeset 52723c94c559f5c2
parent 5271 73f8030f0c72
child 5273 151f40ed9e55
changeset: 5272:cb08ef104ac4
tag: tip
user: Martin Decky <martin@decky.cz>
date: Sat Feb 12 20:53:06 2011 +0100
summary: improve header files compatibility with SDL 1.2 applications (namely QEMU)
include/SDL_hints.h
include/SDL_video.h
src/video/SDL_sysvideo.h
     1.1 --- a/include/SDL_hints.h	Sat Feb 12 11:43:22 2011 -0800
     1.2 +++ b/include/SDL_hints.h	Sat Feb 12 12:04:00 2011 -0800
     1.3 @@ -154,7 +154,7 @@
     1.4   *
     1.5   *  This function is called during SDL_Quit() to free stored hints.
     1.6   */
     1.7 -extern DECLSPEC void SDLCALL SDL_ClearHints();
     1.8 +extern DECLSPEC void SDLCALL SDL_ClearHints(void);
     1.9  
    1.10  
    1.11  /* Ends C function definitions when using C++ */
     2.1 --- a/include/SDL_video.h	Sat Feb 12 11:43:22 2011 -0800
     2.2 +++ b/include/SDL_video.h	Sat Feb 12 12:04:00 2011 -0800
     2.3 @@ -603,16 +603,6 @@
     2.4  extern DECLSPEC int SDLCALL SDL_GetWindowGrab(SDL_Window * window);
     2.5  
     2.6  /**
     2.7 - *  \brief Get driver specific information about a window.
     2.8 - *  
     2.9 - *  \note Include SDL_syswm.h for the declaration of SDL_SysWMinfo.
    2.10 - */
    2.11 -struct SDL_SysWMinfo;
    2.12 -extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo(SDL_Window * window,
    2.13 -                                                     struct SDL_SysWMinfo
    2.14 -                                                     *info);
    2.15 -
    2.16 -/**
    2.17   *  \brief Destroy a window.
    2.18   */
    2.19  extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window);
     3.1 --- a/src/video/SDL_sysvideo.h	Sat Feb 12 11:43:22 2011 -0800
     3.2 +++ b/src/video/SDL_sysvideo.h	Sat Feb 12 12:04:00 2011 -0800
     3.3 @@ -114,6 +114,9 @@
     3.4      void *driverdata;
     3.5  };
     3.6  
     3.7 +/* Forward declaration */
     3.8 +struct SDL_SysWMinfo;
     3.9 +
    3.10  /* Define the SDL video driver structure */
    3.11  #define _THIS	SDL_VideoDevice *_this
    3.12