From d0f4dd3b4b9d0e837dffb36ed3838cb1b24bea30 Mon Sep 17 00:00:00 2001 From: samr7 Date: Mon, 8 Aug 2011 11:07:47 -0700 Subject: [PATCH] Try another method of invoking pthreads-win32 initialization. --- winglue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winglue.c b/winglue.c index 0719142..10c0d02 100644 --- a/winglue.c +++ b/winglue.c @@ -205,8 +205,7 @@ int getopt(int argc, TCHAR *argv[], TCHAR *optstring) int __cdecl __initptw32(void); #if defined(_MSC_VER) -#pragma section(".CRT$XIC",long,read) -__declspec(allocate(".CRT$XIC")) static int (*pinit)(void) = __initptw32; +class __constructme { public: __constructme() { __initptw32(); } } __vg_pinit; #define CONSTRUCTOR_TYPE __cdecl #elif defined(__GNUC__) #define CONSTRUCTOR_TYPE __cdecl __attribute__((constructor))