From da336049b3098246ad7b0551720be5362c45ca41 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 19 Aug 2012 16:29:54 +0700 Subject: [PATCH] Fix linkage on cygwin. ZNC_NO_NEED_TO_DO_ANYTHING_ON_MODULE_CALL_EXITER is required in libznc.dll, but it was defined in main.cpp Again thanks to Lizzy Eilson --- src/Modules.cpp | 2 ++ src/main.cpp | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Modules.cpp b/src/Modules.cpp index feb45aad..a91a7333 100644 --- a/src/Modules.cpp +++ b/src/Modules.cpp @@ -19,6 +19,8 @@ using std::map; using std::set; using std::vector; +bool ZNC_NO_NEED_TO_DO_ANYTHING_ON_MODULE_CALL_EXITER; + #ifndef RTLD_LOCAL # define RTLD_LOCAL 0 # warning "your crap box doesnt define RTLD_LOCAL !?" diff --git a/src/main.cpp b/src/main.cpp index 10491efb..a1f3904b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,8 +35,6 @@ static inline int getopt_long(int argc, char * const argv[], const char *optstri } #endif -bool ZNC_NO_NEED_TO_DO_ANYTHING_ON_MODULE_CALL_EXITER; - static const struct option g_LongOpts[] = { { "help", no_argument, 0, 'h' }, { "version", no_argument, 0, 'v' },