mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[godot] Closes #2958, compatibitlity with deprecated=no
This commit is contained in:
parent
5658eec015
commit
e063bae54d
@ -30,6 +30,7 @@
|
||||
#ifndef SPINE_COMMON_H
|
||||
#define SPINE_COMMON_H
|
||||
|
||||
#include "core/version_generated.gen.h"
|
||||
#ifdef SPINE_GODOT_EXTENSION
|
||||
#include <godot_cpp/core/version.hpp>
|
||||
#include <godot_cpp/classes/ref_counted.hpp>
|
||||
@ -57,6 +58,15 @@ using namespace godot;
|
||||
#define RS RenderingServer
|
||||
#else
|
||||
#include "core/version.h"
|
||||
|
||||
// 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
|
||||
|
||||
#if VERSION_MAJOR > 3
|
||||
#include "core/core_bind.h"
|
||||
#include "core/error/error_macros.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user