Use __has_include

This commit is contained in:
applemonkey496 2021-06-15 11:57:02 -07:00 committed by GitHub
commit 8e1946e01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,15 @@
#ifndef 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>