[vlc-devel] [PATCH 39/41] Call vlc_CPU_init() when loading a DLL on OS/2 as Win32.
KO Myung-Hun
komh at chollian.net
Mon Oct 10 13:44:18 CEST 2011
---
src/misc/cpu.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 22005c1..3698bb7 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -326,7 +326,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
--
1.7.3.2
More information about the vlc-devel
mailing list