Fix compilation in cycles
authorAntony Riakiotakis <kalast@gmail.com>
Sat, 14 Jun 2014 10:54:11 +0000 (13:54 +0300)
committerAntony Riakiotakis <kalast@gmail.com>
Sat, 14 Jun 2014 10:54:38 +0000 (13:54 +0300)
intern/cycles/util/util_simd.h

index 0f65fab58b69898c62264bcaf93707a321828bd5..b6d8f3d25f0f4d4df19c17fc23fbda5a5c17f95a 100644 (file)
@@ -67,7 +67,7 @@ __forceinline operator          int      ( ) const { return std::numeric_limits<
 #define _lzcnt_u64 __lzcnt64
 #endif
 
-#if defined(_WIN32)
+#if defined(_WIN32) && !defined(__MINGW32__)
 
 __forceinline int __popcnt(int in) {
   return _mm_popcnt_u32(in);