From b958aea78abca7f7dc4e3724950fa02a11c25e99 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Wed, 16 Mar 2016 11:56:50 -0600 Subject: swr: [rasterizer common] changes for cygwin --- src/gallium/drivers/swr/rasterizer/common/os.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h index a1698644eb0..d4bec908bb4 100644 --- a/src/gallium/drivers/swr/rasterizer/common/os.h +++ b/src/gallium/drivers/swr/rasterizer/common/os.h @@ -73,6 +73,7 @@ #include #include #include +#include typedef void VOID; typedef void* LPVOID; @@ -94,8 +95,11 @@ typedef unsigned int DWORD; #define INLINE __inline #endif #define DEBUGBREAK asm ("int $3") +#if !defined(__CYGWIN__) #define __cdecl +#define __stdcall #define __declspec(X) +#endif #define GCC_VERSION (__GNUC__ * 10000 \ + __GNUC_MINOR__ * 100 \ @@ -177,7 +181,6 @@ unsigned char _bittest(const LONG *a, LONG b) #define InterlockedDecrement64(Append) __sync_sub_and_fetch(Append, 1) #define InterlockedIncrement(Append) __sync_add_and_fetch(Append, 1) #define _ReadWriteBarrier() asm volatile("" ::: "memory") -#define __stdcall #define PRAGMA_WARNING_PUSH_DISABLE(...) #define PRAGMA_WARNING_POP() -- cgit v1.2.3