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:
parent
615600b224
commit
d0f4dd3b4b
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user