aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/x11/indirect_size.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/x11/indirect_size.h')
-rw-r--r--src/glx/x11/indirect_size.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/glx/x11/indirect_size.h b/src/glx/x11/indirect_size.h
index 181bdfdfd0d..46122a2519c 100644
--- a/src/glx/x11/indirect_size.h
+++ b/src/glx/x11/indirect_size.h
@@ -42,25 +42,18 @@
# define PURE
# endif
-# if defined(__i386__) && defined(__GNUC__)
+# if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)
# define FASTCALL __attribute__((fastcall))
# else
# define FASTCALL
# endif
-# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
+# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && !defined(__CYGWIN__) && !defined(__MINGW32__)
# define INTERNAL __attribute__((visibility("internal")))
# else
# define INTERNAL
# endif
-# if defined(__CYGWIN__) || defined(__MINGW32__)
-# undef FASTCALL
-# define FASTCALL
-# undef INTERNAL
-# define INTERNAL
-# endif
-
extern INTERNAL PURE FASTCALL GLint __glCallLists_size(GLenum);
extern INTERNAL PURE FASTCALL GLint __glFogfv_size(GLenum);
extern INTERNAL PURE FASTCALL GLint __glFogiv_size(GLenum);