Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

surface.hpp fails to compile by itself #42

Open
GabrielRavier opened this issue Nov 11, 2020 · 0 comments
Open

surface.hpp fails to compile by itself #42

GabrielRavier opened this issue Nov 11, 2020 · 0 comments

Comments

@GabrielRavier
Copy link

GabrielRavier commented Nov 11, 2020

How to reproduce:

#include <cpp-sdl2/surface.hpp>

Always reproductible, will fail to compile due to SDL_VERSION_ATLEAST not being defined. Also observable when including cpp-sdl2/renderer.hpp. The temporary workaround I'm using is to #include <SDL_version.h> before including a header that includes cpp-sdl2/surface.hpp (which is probably how this can be fixed in cpp-sdl2/surface.hpp), but this is still a relatively annoying problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant