Declare version_* in only one place. Define them in ver.cpp (at least on autotools).

This commit is contained in:
Ben "root" Anderson
2015-01-28 16:45:19 -06:00
parent a733560e62
commit 0d394e269d
7 changed files with 21 additions and 26 deletions
+4 -6
View File
@@ -18,6 +18,10 @@
#include "JsonUtil.h"
#include "ScreenInstallOverlay.h"
#if defined(HAVE_VERSION_INFO)
#include "ver.h"
#endif
// only used for Version()
#if defined(_WINDOWS)
#include <windows.h>
@@ -77,12 +81,6 @@ static void LuaInformation()
delete pNode;
}
#if defined(HAVE_VERSION_INFO)
extern unsigned long version_num;
extern const char *const version_date;
extern const char *const version_time;
#endif
/**
* @brief Print out version information.
*