mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Use __has_include
This commit is contained in:
commit
8e1946e01a
@ -22,7 +22,15 @@
|
|||||||
#ifndef SDL2PP_SDL_HH
|
#ifndef SDL2PP_SDL_HH
|
||||||
#define SDL2PP_SDL_HH
|
#define SDL2PP_SDL_HH
|
||||||
|
|
||||||
#include <SDL2/SDL_stdinc.h>
|
#ifdef __has_include
|
||||||
|
# if __has_include(<SDL2/SDL_stdinc.h>)
|
||||||
|
# include <SDL2/SDL_stdinc.h>
|
||||||
|
# else
|
||||||
|
# include <SDL_stdinc.h>
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# include <SDL_stdinc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <SDL2pp/Export.hh>
|
#include <SDL2pp/Export.hh>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user