[Mesa-dev] [PATCH v2 10/19] swr: [rasterizer common] guard definition of __cdecl/__stdcall

Tim Rowley timothy.o.rowley at intel.com
Tue May 17 22:36:32 UTC 2016


---
 src/gallium/drivers/swr/rasterizer/common/os.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index 4076812..1d68585 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -93,8 +93,12 @@ typedef unsigned int    DWORD;
 #endif
 #define DEBUGBREAK asm ("int $3")
 #if !defined(__CYGWIN__)
+#ifndef __cdecl
 #define __cdecl
+#endif
+#ifndef __stdcall
 #define __stdcall
+#endif
 #define __declspec(X)
 #endif
 
-- 
1.9.1



More information about the mesa-dev mailing list