From: Tim Rowley Date: Wed, 16 Mar 2016 17:56:50 +0000 (-0600) Subject: swr: [rasterizer common] changes for cygwin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b958aea78abca7f7dc4e3724950fa02a11c25e99;p=mesa.git swr: [rasterizer common] changes for cygwin --- 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()