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

@ -28,6 +28,10 @@
#include "SDL_mutex.h"
#include "SDL_yuv_sw_c.h"
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern "C" {
#endif
/**
* A rectangle, with the origin at the upper left (double precision).
@ -309,6 +313,11 @@ extern void *SDL_AllocateRenderVertices(SDL_Renderer *renderer, const size_t num
extern int SDL_PrivateLowerBlitScaled(SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect, SDL_ScaleMode scaleMode);
extern int SDL_PrivateUpperBlitScaled(SDL_Surface * src, const SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect, SDL_ScaleMode scaleMode);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#endif /* SDL_sysrender_h_ */
/* vi: set ts=4 sw=4 expandtab: */