diff --git a/3rdparty/pthreads4w/autostatic.c b/3rdparty/pthreads4w/autostatic.c index 0cd913354a..8eaae6f8e7 100644 --- a/3rdparty/pthreads4w/autostatic.c +++ b/3rdparty/pthreads4w/autostatic.c @@ -73,14 +73,9 @@ static void on_process_init(void) attribute_section(".ctors") void *gcc_ctor = on_process_init; attribute_section(".dtors") void *gcc_dtor = on_process_exit; -#if !PCSX2_FIX attribute_section(".CRT$XCU") void *msc_ctor = on_process_init; +#if !PCSX2_FIX attribute_section(".CRT$XPU") void *msc_dtor = on_process_exit; -#else -// MSVC puts all initializers in .CRT$XCU and order of those is not fully deterministic -// Since the entire point of this is to call on_process_init before any other initializer, -// move it to .CRT$XCP so it is guaranteed it initializes early -attribute_section(".CRT$XCP") void *msc_ctor = on_process_init; #endif #endif /* defined(__MINGW64__) || defined(__MINGW32__) || defined(_MSC_VER) */