aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/common
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-07-12 10:33:58 -0600
committerTim Rowley <[email protected]>2016-07-20 10:22:15 -0500
commita5846fb75abae86dee29b2948b5d6462d84467c3 (patch)
tree8c57a3cef83e6e4669e7fe0ddeec4cc46ce8ef52 /src/gallium/drivers/swr/rasterizer/common
parent0d13f2e801d6b1fabf3e67cc9aac3ec4361f05c9 (diff)
swr: [rasterizer common] icc declspec definitions
Signed-off-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/common')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/os.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index 45517f6e67d..32eca688d64 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -105,14 +105,30 @@ typedef unsigned int DWORD;
#define INLINE __inline
#endif
#define DEBUGBREAK asm ("int $3")
+
#if !defined(__CYGWIN__)
+
#ifndef __cdecl
#define __cdecl
#endif
#ifndef __stdcall
#define __stdcall
#endif
-#define __declspec(X)
+
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
+ #define __declspec(x) __declspec_##x
+ #define __declspec_align(y) __attribute__((aligned(y)))
+ #define __declspec_deprecated __attribute__((deprecated))
+ #define __declspec_dllexport
+ #define __declspec_dllimport
+ #define __declspec_noinline __attribute__((__noinline__))
+ #define __declspec_nothrow __attribute__((nothrow))
+ #define __declspec_novtable
+ #define __declspec_thread __thread
+#else
+ #define __declspec(X)
+#endif
+
#endif
#define GCC_VERSION (__GNUC__ * 10000 \