diff --git a/include/raylib.hpp b/include/raylib.hpp index 5280eff3..38b38ff1 100644 --- a/include/raylib.hpp +++ b/include/raylib.hpp @@ -18,6 +18,10 @@ extern "C" { #error "raylib-cpp requires at least raylib 4.5.0" #endif +#if RAYLIB_VERSION_MINOR > 5 +#error "raylib-cpp targets raylib 4.5. Use the `next` branch for the next version of raylib." +#endif + #ifdef __cplusplus } #endif