swr: [rasterizer common] win32 build fixups
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 24 Mar 2016 23:48:57 +0000 (17:48 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 12 Apr 2016 16:52:05 +0000 (11:52 -0500)
Acked-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/swr/rasterizer/common/os.h

index 5794f3f625a68e3530ca1a68d41e5b86e478704b..427ebc1b3cc4c7c18d1d78447a1088d9400abfd2 100644 (file)
 
 #define SWR_API __cdecl
 
-#ifndef _CRT_SECURE_NO_WARNINGS
-#define _CRT_SECURE_NO_WARNINGS
-#endif
-
 #ifndef NOMINMAX
 #define NOMINMAX
 #endif
@@ -52,7 +48,6 @@
 
 #define PRAGMA_WARNING_POP() __pragma(warning(pop))
 
-#if defined(_WIN32)
 #if defined(_WIN64)
 #define BitScanReverseSizeT BitScanReverse64
 #define BitScanForwardSizeT BitScanForward64
@@ -62,7 +57,6 @@
 #define BitScanForwardSizeT BitScanForward
 #define _mm_popcount_sizeT _mm_popcnt_u32
 #endif
-#endif
 
 #elif defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__)