From d9a1c885b0da771e85ee9d1bb4099408e95edfd1 Mon Sep 17 00:00:00 2001 From: applemonkey496 <55333787+applemonkey496@users.noreply.github.com> Date: Tue, 15 Jun 2021 11:52:37 -0700 Subject: [PATCH] Use __has_include --- SDL2pp/SDL.hh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SDL2pp/SDL.hh b/SDL2pp/SDL.hh index df95549..ab00989 100644 --- a/SDL2pp/SDL.hh +++ b/SDL2pp/SDL.hh @@ -22,7 +22,15 @@ #ifndef SDL2PP_SDL_HH #define SDL2PP_SDL_HH -#include +#ifdef __has_include +# if __has_include() +# include +# else +# include +# endif +#else +# include +#endif #include