Add support for SDL_render_d3d12.c to compile in C++ mode

This commit is contained in:
unknown
2022-06-26 18:47:34 +00:00
committed by Sam Lantinga
parent fa39f73552
commit 51c6488f97
6 changed files with 211 additions and 141 deletions

View File

@@ -27,6 +27,11 @@
#include "../SDL_egl_c.h"
#endif
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
SDL_Window *window;
@@ -102,6 +107,11 @@ extern void WIN_ClientPointFromSDL(const SDL_Window *window, int *w, int *h);
extern void WIN_AcceptDragAndDrop(SDL_Window * window, SDL_bool accept);
extern int WIN_FlashWindow(_THIS, SDL_Window * window, SDL_FlashOperation operation);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#endif /* SDL_windowswindow_h_ */
/* vi: set ts=4 sw=4 expandtab: */