Commit e208c6eb authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Rémi Denis-Courmont

Call vlc_CPU_init() when loading a DLL on OS/2 as Win32.

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 9ef94f0a
...@@ -325,7 +325,9 @@ out: ...@@ -325,7 +325,9 @@ out:
*/ */
unsigned vlc_CPU (void) unsigned vlc_CPU (void)
{ {
#ifndef WIN32 /* On Windows, initialized from DllMain() instead */ /* On Windows and OS/2,
* initialized from DllMain() and _DLL_InitTerm() respectively, instead */
#if !defined(WIN32) && !defined(__OS2__)
static pthread_once_t once = PTHREAD_ONCE_INIT; static pthread_once_t once = PTHREAD_ONCE_INIT;
pthread_once (&once, vlc_CPU_init); pthread_once (&once, vlc_CPU_init);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment