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:
parent
aec3ca845f
commit
5c9961eac7
2 changed files with 7 additions and 1 deletions
|
@ -416,7 +416,11 @@ int GetCompressedDataFromDataBlock(int offset, HANDLE hFileOut);
|
||||||
int GetCompressedDataFromDataBlockToMemory(int offset, char *out, int out_len);
|
int GetCompressedDataFromDataBlockToMemory(int offset, char *out, int out_len);
|
||||||
|
|
||||||
// $0..$9, $INSTDIR, etc are encoded as ASCII bytes starting from this value.
|
// $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_
|
#endif //_FILEFORM_H_
|
||||||
|
|
|
@ -501,9 +501,11 @@ void process_string(char *out, const char *in)
|
||||||
wsprintf(out, "%u", cur_install_strings_table->lang_id);
|
wsprintf(out, "%u", cur_install_strings_table->lang_id);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
|
||||||
case VAR_CODES_START + 35: // PLUGINSDIR
|
case VAR_CODES_START + 35: // PLUGINSDIR
|
||||||
lstrcpy(out, plugins_temp_dir);
|
lstrcpy(out, plugins_temp_dir);
|
||||||
break;
|
break;
|
||||||
|
#endif //NSIS_CONFIG_PLUGIN_SUPPORT
|
||||||
|
|
||||||
#if VAR_CODES_START + 34 >= 255
|
#if VAR_CODES_START + 34 >= 255
|
||||||
#error "Too many variables! Extend VAR_CODES_START!"
|
#error "Too many variables! Extend VAR_CODES_START!"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue