summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-05-05 16:13:21 -0600
committerTim Rowley <[email protected]>2016-05-19 16:26:24 -0500
commitaebbd2f7dde05437e0621aeb94de31d1227645fa (patch)
treea49db8c12c356364abeb8d549f7609686101df89 /src/gallium/drivers/swr/rasterizer
parent82e335ce675a28ecb0959cbf26d0e10fb4512cb7 (diff)
swr: [rasterizer common] guard definition of __cdecl/__stdcall
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/os.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index 4076812e64a..1d685851219 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