fix bug #4362 - SDL_syswm.h with SDL_PROTOTYPES_ONLY broken in C++ mode
authorOzkan Sezer <sezeroz@gmail.com>
Tue, 06 Nov 2018 20:50:24 +0300
changeset 12397244cdac21bcd
parent 12396 50b071ef40ab
child 12399 2ea6e539b218
fix bug #4362 - SDL_syswm.h with SDL_PROTOTYPES_ONLY broken in C++ mode
include/SDL_syswm.h
     1.1 --- a/include/SDL_syswm.h	Sun Nov 04 21:11:07 2018 -0500
     1.2 +++ b/include/SDL_syswm.h	Tue Nov 06 20:50:24 2018 +0300
     1.3 @@ -41,9 +41,9 @@
     1.4   *  an unhandled window event occurs.  This event is ignored by default, but
     1.5   *  you can enable it with SDL_EventState().
     1.6   */
     1.7 -#ifdef SDL_PROTOTYPES_ONLY
     1.8  struct SDL_SysWMinfo;
     1.9 -#else
    1.10 +
    1.11 +#if !defined(SDL_PROTOTYPES_ONLY)
    1.12  
    1.13  #if defined(SDL_VIDEO_DRIVER_WINDOWS)
    1.14  #ifndef WIN32_LEAN_AND_MEAN
    1.15 @@ -103,6 +103,8 @@
    1.16  #if defined(SDL_VIDEO_DRIVER_VIVANTE)
    1.17  #include "SDL_egl.h"
    1.18  #endif
    1.19 +#endif /* SDL_PROTOTYPES_ONLY */
    1.20 +
    1.21  
    1.22  #include "begin_code.h"
    1.23  /* Set up for C function definitions, even when using C++ */
    1.24 @@ -110,6 +112,7 @@
    1.25  extern "C" {
    1.26  #endif
    1.27  
    1.28 +#if !defined(SDL_PROTOTYPES_ONLY)
    1.29  /**
    1.30   *  These are the various supported windowing subsystems
    1.31   */