]> git.sesse.net Git - x264/blobdiff - common/win32thread.h
msvs: WinRT support
[x264] / common / win32thread.h
index 07cbada8a30b9ff423fc695a96bfcc8250613518..c16ad00113ac4298a6578c384d2786b44262a500 100644 (file)
@@ -45,12 +45,14 @@ typedef CRITICAL_SECTION x264_pthread_mutex_t;
 #define X264_PTHREAD_MUTEX_INITIALIZER {0}
 #define x264_pthread_mutexattr_t int
 
-/* This is the CONDITIONAL_VARIABLE typedef for using Window's native conditional variables on kernels 6.0+.
- * MinGW does not currently have this typedef. */
+#if HAVE_WINRT
+typedef CONDITION_VARIABLE x264_pthread_cond_t;
+#else
 typedef struct
 {
-    void *ptr;
+    void *Ptr;
 } x264_pthread_cond_t;
+#endif
 #define x264_pthread_condattr_t int
 
 int x264_pthread_create( x264_pthread_t *thread, const x264_pthread_attr_t *attr,