From 76d64a2992310ffd5ee70755d889688a86c485a8 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 19 Apr 2005 18:10:45 +0000 Subject: [PATCH] fixed compile error without NSIS_CONFIG_COMPONENTPAGE git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3971 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/components.c | 4 ++++ Source/exehead/components.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Source/exehead/components.c b/Source/exehead/components.c index b1ef5032..45d32863 100644 --- a/Source/exehead/components.c +++ b/Source/exehead/components.c @@ -91,6 +91,8 @@ void NSISCALL RefreshSectionGroups() { _RefreshSectionGroups(0, 1); } +#ifdef NSIS_CONFIG_COMPONENTPAGE + void NSISCALL SetInstType(int inst_type) { unsigned int i = 0; @@ -146,3 +148,5 @@ unsigned int NSISCALL GetInstType(HTREEITEM *items) { return i; } + +#endif//NSIS_CONFIG_COMPONENTPAGE diff --git a/Source/exehead/components.h b/Source/exehead/components.h index b5a93497..870f2acb 100644 --- a/Source/exehead/components.h +++ b/Source/exehead/components.h @@ -3,7 +3,9 @@ void NSISCALL SectionFlagsChanged(unsigned int index); void NSISCALL RefreshSectionGroups(); +#ifdef NSIS_CONFIG_COMPONENTPAGE void NSISCALL SetInstType(int inst_type); unsigned int NSISCALL GetInstType(HTREEITEM *items); +#endif//NSIS_CONFIG_COMPONENTPAGE #endif//!___COMPONENTS_H___