No more compile errors without NSIS_CONFIG_PLUGIN_SUPPORT

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@681 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-08-10 09:40:34 +00:00
parent 5c9961eac7
commit 78a1bbb020
2 changed files with 7 additions and 1 deletions

View file

@ -328,7 +328,9 @@ int CEXEBuild::preprocess_string(char *out, const char *in)
"WINDIR\0" // 32
"SYSDIR\0" // 33
"LANGUAGE\0" // 34
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
"PLUGINSDIR\0" // 35
#endif
;
const char *p=in;

View file

@ -505,11 +505,15 @@ void process_string(char *out, const char *in)
case VAR_CODES_START + 35: // PLUGINSDIR
lstrcpy(out, plugins_temp_dir);
break;
#endif //NSIS_CONFIG_PLUGIN_SUPPORT
#if VAR_CODES_START + 35 >= 255
#error "Too many variables! Extend VAR_CODES_START!"
#endif
#else
#if VAR_CODES_START + 34 >= 255
#error "Too many variables! Extend VAR_CODES_START!"
#endif
#endif //NSIS_CONFIG_PLUGIN_SUPPORT
} // switch
// remove trailing slash
while (*out && *CharNext(out)) out++;