From d56004079e6c4d71637f7e9be4f0b7d834e7a2a8 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 17 Jul 2007 16:45:13 +0000 Subject: [PATCH] fixed bug #1755148 - hpux build linkage specification in main git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5206 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/makenssi.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/makenssi.cpp b/Source/makenssi.cpp index 8af6741b..759fb8cf 100644 --- a/Source/makenssi.cpp +++ b/Source/makenssi.cpp @@ -243,11 +243,13 @@ static int change_to_script_dir(CEXEBuild& build, string& script) return 0; } +#ifdef NSIS_HPUX_ALLOW_UNALIGNED_DATA_ACCESS +extern "C" void allow_unaligned_data_access(); +#endif + int main(int argc, char **argv) { - #ifdef NSIS_HPUX_ALLOW_UNALIGNED_DATA_ACCESS - extern "C" void allow_unaligned_data_access(); allow_unaligned_data_access(); #endif