Adjust version header to resolve linker conflict with two definitions of love::VERSION in android builds

NOTE: Sadly, on some platforms, like linux, the linker is "smart" enough to have the previous code be completely ineffective, the checking will only work with versions of love >= 0.9.2
This commit is contained in:
Bart van Strien
2015-01-24 23:09:49 +01:00
parent cf60cf89fc
commit 33d2331255
3 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -165,7 +165,9 @@ int w__openConsole(lua_State *L);
const char *love_version()
{
return love::VERSION;
// Do not refer to love::VERSION here, the linker
// will patch it back up to the executable's one..
return LOVE_VERSION_STRING;
}
const char *love_codename()