Xfuncproto.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+) Index: include/Xfuncproto.h =================================================================== RCS file: /cvs/xorg/xc/include/Xfuncproto.h,v retrieving revision 1.3 diff -u -d -r1.3 Xfuncproto.h --- include/Xfuncproto.h 17 May 2005 08:10:09 -0000 1.3 +++ include/Xfuncproto.h 21 May 2005 22:54:08 -0000 @@ -77,4 +77,18 @@ # define _X_ATTRIBUTE_PRINTF(x,y) #endif /* GNUC >= 4 */ +#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303) +# define _X_EXPORT __attribute__((visibility("default"))) +# define _X_HIDDEN __attribute__((visibility("hidden"))) +# define _X_INTERNAL __attribute__((visibility("internal"))) +#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) +# define _X_EXPORT __global +# define _X_HIDDEN __hidden +# define _X_INTERNAL __hidden +#else /* not gcc >= 3.3 and not Sun Studio >= 8 */ +# define _X_EXPORT +# define _X_HIDDEN +# define _X_INTERNAL +#endif + #endif /* _XFUNCPROTO_H_ */