mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 19:38:14 +00:00
GDK: Fix SDL_pixels.c/_c.h linking error caused by C / C++ mismatch
This commit is contained in:
@@ -31,7 +31,6 @@
|
|||||||
#include "../../video/windows/SDL_windowswindow.h"
|
#include "../../video/windows/SDL_windowswindow.h"
|
||||||
#include "../SDL_sysrender.h"
|
#include "../SDL_sysrender.h"
|
||||||
#include "../SDL_d3dmath.h"
|
#include "../SDL_d3dmath.h"
|
||||||
#include "../../video/SDL_pixels_c.h"
|
|
||||||
|
|
||||||
#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
|
#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
|
||||||
#include "SDL_render_d3d12_xbox.h"
|
#include "SDL_render_d3d12_xbox.h"
|
||||||
@@ -78,6 +77,9 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* This must be included here as the function definitions in SDL_pixels.c/_c.h are C, not C++ */
|
||||||
|
#include "../../video/SDL_pixels_c.h"
|
||||||
|
|
||||||
/* !!! FIXME: vertex buffer bandwidth could be lower; only use UV coords when
|
/* !!! FIXME: vertex buffer bandwidth could be lower; only use UV coords when
|
||||||
!!! FIXME: textures are needed. */
|
!!! FIXME: textures are needed. */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user