mirror of https://github.com/PCSX2/pcsx2.git
Revert "3rdparty/pthreads4w: Ensure on_process_init early execution. (#3073)"
This reverts commit 88a02941f6
.
This commit is contained in:
parent
88a02941f6
commit
fc8423e49d
|
@ -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) */
|
||||
|
|
Loading…
Reference in New Issue