File libnice-0.1.7-win64.patch of Package mingw64-libnice

--- stun/win32_common.h
+++ stun/win32_common.h
@@ -71,10 +71,18 @@
 typedef unsigned long long   uint64_t;
 
 #ifndef HAVE_SIZE_T
+#ifdef _WIN64
+typedef unsigned __int64 size_t;
+#else
 typedef unsigned int size_t;
 #endif
+#endif
 #ifndef HAVE_SSIZE_T
-typedef unsigned long ssize_t;
+#ifdef _WIN64
+typedef signed __int64 ssize_t;
+#else
+typedef int ssize_t;
+#endif
 #endif
 
 typedef uint8_t bool;
openSUSE Build Service is sponsored by