Browse Source

Try another method of invoking pthreads-win32 initialization.

master
samr7 13 years ago
parent
commit
d0f4dd3b4b
  1. 3
      winglue.c

3
winglue.c

@ -205,8 +205,7 @@ int getopt(int argc, TCHAR *argv[], TCHAR *optstring)
int __cdecl __initptw32(void); int __cdecl __initptw32(void);
#if defined(_MSC_VER) #if defined(_MSC_VER)
#pragma section(".CRT$XIC",long,read) class __constructme { public: __constructme() { __initptw32(); } } __vg_pinit;
__declspec(allocate(".CRT$XIC")) static int (*pinit)(void) = __initptw32;
#define CONSTRUCTOR_TYPE __cdecl #define CONSTRUCTOR_TYPE __cdecl
#elif defined(__GNUC__) #elif defined(__GNUC__)
#define CONSTRUCTOR_TYPE __cdecl __attribute__((constructor)) #define CONSTRUCTOR_TYPE __cdecl __attribute__((constructor))

Loading…
Cancel
Save