No more compile errors without NSIS_CONFIG_PLUGIN_SUPPORT

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

View file

@ -416,7 +416,11 @@ int GetCompressedDataFromDataBlock(int offset, HANDLE hFileOut);
int GetCompressedDataFromDataBlockToMemory(int offset, char *out, int out_len);
// $0..$9, $INSTDIR, etc are encoded as ASCII bytes starting from this value.
#define VAR_CODES_START (256 - 37)
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
#define VAR_CODES_START (256 - 37)
#else
#define VAR_CODES_START (256 - 36)
#endif
#endif //_FILEFORM_H_

View file

@ -501,9 +501,11 @@ void process_string(char *out, const char *in)
wsprintf(out, "%u", cur_install_strings_table->lang_id);
break;
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
case VAR_CODES_START + 35: // PLUGINSDIR
lstrcpy(out, plugins_temp_dir);
break;
#endif //NSIS_CONFIG_PLUGIN_SUPPORT
#if VAR_CODES_START + 34 >= 255
#error "Too many variables! Extend VAR_CODES_START!"