made NSIS_VERSION a define set by the scons script

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4024 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-05-12 16:27:35 +00:00
parent 0b5ea752a9
commit f85a88852c
7 changed files with 16 additions and 14 deletions

View file

@ -6,8 +6,6 @@
#include "DialogTemplate.h"
#include "exehead/resource.h"
extern const char *NSIS_VERSION;
// Default English strings. Should match NSIS_DEFAULT_LANG
// Do not change the first string in every item, it's the LangString
// name for usage in scripts.
@ -830,8 +828,8 @@ void CEXEBuild::FillLanguageTable(LanguageTable *table) {
if (!dstr)
continue;
if (i == NLF_BRANDING) {
char temp[NSIS_MAX_STRLEN + sizeof(NSIS_VERSION)];
sprintf(temp, dstr, NSIS_VERSION);
char temp[NSIS_MAX_STRLEN + sizeof(CONST_STR(NSIS_VERSION))];
sprintf(temp, dstr, CONST_STR(NSIS_VERSION));
table->lang_strings->set(sn, temp);
continue;
}