moved VARS_SECTION_NAME from config.h to config.py and renamed it to NSIS_VARS_SECTION

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4495 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-01-21 15:17:28 +00:00
parent 5e71f67d63
commit dcc5a3c002
4 changed files with 14 additions and 7 deletions

View file

@ -21,13 +21,13 @@ char g_log_file[1024];
// which result in extra memory for extra variables without code to do allocation :)
// nsis then removes the "DISCARDABLE" style from section (for safe)
#ifdef _MSC_VER
# pragma bss_seg(VARS_SECTION_NAME)
# pragma bss_seg(NSIS_VARS_SECTION)
NSIS_STRING g_usrvars[1];
# pragma bss_seg()
# pragma comment(linker, "/section:" VARS_SECTION_NAME ",rwd")
# pragma comment(linker, "/section:" NSIS_VARS_SECTION ",rwd")
#else
# ifdef __GNUC__
NSIS_STRING g_usrvars[1] __attribute__((section (VARS_SECTION_NAME)));
NSIS_STRING g_usrvars[1] __attribute__((section (NSIS_VARS_SECTION)));
# else
# error Unknown compiler. You must implement the seperate PE section yourself.
# endif