1
0
mirror of https://github.com/GOSTSec/vanitygen synced 2025-03-13 05:41:35 +00:00

Try another method of invoking pthreads-win32 initialization.

This commit is contained in:
samr7 2011-08-08 11:07:47 -07:00
parent 615600b224
commit d0f4dd3b4b

View File

@ -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))