diff options
author | Alan Hourihane <[email protected]> | 2005-08-24 09:08:06 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2005-08-24 09:08:06 +0000 |
commit | c58cea00853ad80efc9b5866bd1b95321a6d04ae (patch) | |
tree | b9e0896607a0f47aa41d0b32c2d06d43d9a81d1d /src/glx/x11 | |
parent | 334f2d807766dd399c510f89e67d2ebb075fcee9 (diff) |
Fix Windows build problems.
GCC's visibility attribute is for ELF systems, so undef INTERNAL
GCC's fastcall attribute interferes with __stdcall so undef FASTCALL
Diffstat (limited to 'src/glx/x11')
-rw-r--r-- | src/glx/x11/indirect_size.c | 8 | ||||
-rw-r--r-- | src/glx/x11/indirect_size.h | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/glx/x11/indirect_size.c b/src/glx/x11/indirect_size.c index b8886e48591..bd89cec00f1 100644 --- a/src/glx/x11/indirect_size.c +++ b/src/glx/x11/indirect_size.c @@ -47,7 +47,6 @@ # define INTERNAL # endif - #ifdef HAVE_ALIAS # define ALIAS2(from,to) \ INTERNAL PURE FASTCALL GLint __gl ## from ## _size( GLenum e ) \ @@ -59,6 +58,13 @@ { return __gl ## to ## _size( e ); } #endif +# if defined(__CYGWIN__) || defined(WIN32) +# undef FASTCALL +# define FASTCALL +# undef HAVE_ALIAS +# undef INTERNAL +# define INTERNAL +# endif INTERNAL PURE FASTCALL GLint __glCallLists_size( GLenum e ) diff --git a/src/glx/x11/indirect_size.h b/src/glx/x11/indirect_size.h index ba7fc35b24b..090d0a2e926 100644 --- a/src/glx/x11/indirect_size.h +++ b/src/glx/x11/indirect_size.h @@ -54,6 +54,13 @@ # define INTERNAL # endif +# if defined(__CYGWIN__) || defined(WIN32) +# 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); |