swr: [rasterizer common] changes for cygwin
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 16 Mar 2016 17:56:50 +0000 (11:56 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 25 Mar 2016 19:45:39 +0000 (14:45 -0500)
src/gallium/drivers/swr/rasterizer/common/os.h

index a1698644eb054e1083b9199a14f41aecba7c9bbd..d4bec908bb484ab74dc1c9c531ce130443febe60 100644 (file)
@@ -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()