1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Move VERSION_MKSTRING logic to version.h

Fixes a bug where the VERSION_PATCH define is not yet in scope if
typedefs.h is included before version.h at compilation time.
This commit is contained in:
Rémi Verschelde
2017-04-10 23:08:19 +02:00
parent c449df86f7
commit 3b687c5474
5 changed files with 41 additions and 13 deletions

View File

@@ -1093,7 +1093,7 @@ def update_version():
print("Using custom revision: " + rev)
import version
f = open("core/version.h", "wb")
f = open("core/version_generated.h", "wb")
f.write("#define VERSION_SHORT_NAME " + str(version.short_name) + "\n")
f.write("#define VERSION_NAME " + str(version.name) + "\n")
f.write("#define VERSION_MAJOR " + str(version.major) + "\n")