aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/common
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-03-16 11:56:50 -0600
committerTim Rowley <[email protected]>2016-03-25 14:45:39 -0500
commitb958aea78abca7f7dc4e3724950fa02a11c25e99 (patch)
tree2f67f3245fea353993466e6c802a72dc449f73d4 /src/gallium/drivers/swr/rasterizer/common
parente1222ade0039289993fbec261408eea5e0d7d9ae (diff)
swr: [rasterizer common] changes for cygwin
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/common')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/os.h5
1 files changed, 4 insertions, 1 deletions
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 <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <stdio.h>
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()