We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5658eec commit e063baeCopy full SHA for e063bae
1 file changed
spine-godot/spine_godot/SpineCommon.h
@@ -30,6 +30,7 @@
30
#ifndef SPINE_COMMON_H
31
#define SPINE_COMMON_H
32
33
+#include "core/version_generated.gen.h"
34
#ifdef SPINE_GODOT_EXTENSION
35
#include <godot_cpp/core/version.hpp>
36
#include <godot_cpp/classes/ref_counted.hpp>
@@ -57,6 +58,15 @@ using namespace godot;
57
58
#define RS RenderingServer
59
#else
60
#include "core/version.h"
61
+
62
+// When running scons with deprecated=no, these are not defined in version.h in Godot 4.5.1
63
+// but our code for older versions of Godot relies on them.
64
+#ifndef VERSION_MAJOR
65
+#define VERSION_MAJOR GODOT_VERSION_MAJOR
66
+#define VERSION_MINOR GODOT_VERSION_MINOR
67
+#define VERSION_PATCH GODOT_VERSION_PATCH
68
+#endif
69
70
#if VERSION_MAJOR > 3
71
#include "core/core_bind.h"
72
#include "core/error/error_macros.h"
0 commit comments