mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-10 07:50:06 -04:00
Sort out SDL_point forward declaration
This commit is contained in:
parent
c6d945120e
commit
2c16af7f12
@ -28,11 +28,13 @@
|
|||||||
|
|
||||||
// SDL 2.0.0 doesn't have a name for SDL_Point structure (only
|
// SDL 2.0.0 doesn't have a name for SDL_Point structure (only
|
||||||
// typedef), so we can't use forward declaration yet. This was
|
// typedef), so we can't use forward declaration yet. This was
|
||||||
// fixed in SDL mercurial repo, so we can switch to forward
|
// fixed in later versions starting with 2.0.1
|
||||||
// declaration later
|
|
||||||
|
|
||||||
//struct SDL_Point;
|
#if SDL_MAJOR_VERSION == 2 && SDL_MINOR_VERSION == 0 && SDL_PATCHLEVEL == 0
|
||||||
#include <SDL2/SDL_rect.h>
|
# include <SDL2/SDL_rect.h>
|
||||||
|
#else
|
||||||
|
struct SDL_Point;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace SDL2pp {
|
namespace SDL2pp {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user