diff --git a/spine-godot/spine_godot/SpineCommon.h b/spine-godot/spine_godot/SpineCommon.h index 8bd456e53..412a80aef 100644 --- a/spine-godot/spine_godot/SpineCommon.h +++ b/spine-godot/spine_godot/SpineCommon.h @@ -33,6 +33,15 @@ #include "core/version_generated.gen.h" #ifdef SPINE_GODOT_EXTENSION #include + +// When running scons with deprecated=no, these are not defined in version.h in Godot 4.5.1 +// but our code for older versions of Godot relies on them. +#ifndef VERSION_MAJOR +#define VERSION_MAJOR GODOT_VERSION_MAJOR +#define VERSION_MINOR GODOT_VERSION_MINOR +#define VERSION_PATCH GODOT_VERSION_PATCH +#endif + #include #include using namespace godot;