We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e063bae commit 3ffea50Copy full SHA for 3ffea50
spine-godot/spine_godot/SpineCommon.h
@@ -33,6 +33,15 @@
33
#include "core/version_generated.gen.h"
34
#ifdef SPINE_GODOT_EXTENSION
35
#include <godot_cpp/core/version.hpp>
36
+
37
+// When running scons with deprecated=no, these are not defined in version.h in Godot 4.5.1
38
+// but our code for older versions of Godot relies on them.
39
+#ifndef VERSION_MAJOR
40
+#define VERSION_MAJOR GODOT_VERSION_MAJOR
41
+#define VERSION_MINOR GODOT_VERSION_MINOR
42
+#define VERSION_PATCH GODOT_VERSION_PATCH
43
+#endif
44
45
#include <godot_cpp/classes/ref_counted.hpp>
46
#include <godot_cpp/variant/string_name.hpp>
47
using namespace godot;
0 commit comments