]> git.sesse.net Git - vlc/commitdiff
Call vlc_CPU_init() when loading a DLL on OS/2 as Win32.
authorKO Myung-Hun <komh@chollian.net>
Mon, 10 Oct 2011 11:44:18 +0000 (20:44 +0900)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 10 Oct 2011 16:16:46 +0000 (19:16 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
src/misc/cpu.c

index 15de451c0d3d221c6d43f530b09d676ae8836ba6..e7e2281552c3b05b2de223ca15d14fdb747cf77f 100644 (file)
@@ -325,7 +325,9 @@ out:
  */
 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;
     pthread_once (&once, vlc_CPU_init);
 #endif