[libromdata] CisoPspDlopen.hpp: Need to typedef int pthread_once_t on Windows.
Some checks failed
Codecov / run (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled

Normally this would be in pthread_once.h, but we're not using the
standard version due to calling a class member function.
This commit is contained in:
David Korth 2025-06-04 13:33:21 -04:00
parent df719e959a
commit 981c173142

View File

@ -14,6 +14,7 @@
# include "libwin32common/RpWin32_sdk.h"
# define dlsym(handle, symbol) GetProcAddress((handle), (symbol))
# define dlclose(handle) FreeLibrary(handle)
typedef int pthread_once_t;
#else /* !_WIN32 */
# include <dlfcn.h> // for dlopen()
typedef void *HMODULE;