First MinGW-w64 support for cmake has been added. To test I recommend this build:
[blender-staging.git] / intern / guardedalloc / MEM_sys_types.h
index b7e17154df04f5329c50d9dcdb096f53e102d110..3d43733c569f60ebe4f68b621c23a3d280bdf8a1 100644 (file)
@@ -108,8 +108,10 @@ typedef uint64_t  u_int64_t;
 #include <inttypes.h>
 
 #elif defined(FREE_WINDOWS)
+#ifndef FREE_WINDOWS64
 /* define htoln here, there must be a syntax error in winsock2.h in MinGW */
 unsigned long __attribute__((__stdcall__)) htonl(unsigned long);
+#endif
 #include <stdint.h>
 
 #else