From 5c9961eac7f3c5e39c042bbf3a3e9486be4f3f40 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 10 Aug 2002 09:39:03 +0000 Subject: [PATCH] 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 --- Source/exehead/fileform.h | 6 +++++- Source/exehead/util.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/exehead/fileform.h b/Source/exehead/fileform.h index 5a03eefc..a7650db3 100644 --- a/Source/exehead/fileform.h +++ b/Source/exehead/fileform.h @@ -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_ diff --git a/Source/exehead/util.c b/Source/exehead/util.c index 0aa178b4..d6aef866 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -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!"