Skip to content

Commit

Permalink
fix bug #4362 - SDL_syswm.h with SDL_PROTOTYPES_ONLY broken in C++ mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 6, 2018
1 parent 1dbf7dc commit a60751b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/SDL_syswm.h
Expand Up @@ -41,9 +41,9 @@
* an unhandled window event occurs. This event is ignored by default, but
* you can enable it with SDL_EventState().
*/
#ifdef SDL_PROTOTYPES_ONLY
struct SDL_SysWMinfo;
#else

#if !defined(SDL_PROTOTYPES_ONLY)

#if defined(SDL_VIDEO_DRIVER_WINDOWS)
#ifndef WIN32_LEAN_AND_MEAN
Expand Down Expand Up @@ -103,13 +103,16 @@ typedef void *EGLSurface;
#if defined(SDL_VIDEO_DRIVER_VIVANTE)
#include "SDL_egl.h"
#endif
#endif /* SDL_PROTOTYPES_ONLY */


#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern "C" {
#endif

#if !defined(SDL_PROTOTYPES_ONLY)
/**
* These are the various supported windowing subsystems
*/
Expand Down

0 comments on commit a60751b

Please sign in to comment.