mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-01 05:10:52 +00:00
Revert "3rdparty/pthreads4w: Ensure on_process_init early execution. (#3073)"
This reverts commit 88a02941f6
.
This commit is contained in:
parent
88a02941f6
commit
fc8423e49d
7
3rdparty/pthreads4w/autostatic.c
vendored
7
3rdparty/pthreads4w/autostatic.c
vendored
@ -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
Block a user