diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-12-03 11:29:54 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-12-03 11:31:21 -0800 |
commit | b77ca7cc9c23184c4ab367baf1b3ed0acf27c269 (patch) | |
tree | d9bcfb058432e5bbc950dfe80d16200bbfb26139 | |
parent | 1faba797cbfe1a4804b7ea6b47e1ca9d4e4324e4 (diff) |
Use _X_EXPORT instead of __attribute__((visibility("default")))
-rw-r--r-- | hw/xfree86/parser/Flags.c | 3 | ||||
-rw-r--r-- | hw/xfree86/parser/scan.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/hw/xfree86/parser/Flags.c b/hw/xfree86/parser/Flags.c index 730ea0cab..19b9d1477 100644 --- a/hw/xfree86/parser/Flags.c +++ b/hw/xfree86/parser/Flags.c @@ -63,6 +63,7 @@ #include "xf86tokens.h" #include "Configint.h" #include <math.h> +#include <X11/Xfuncproto.h> extern LexRec val; @@ -330,7 +331,7 @@ xf86findOption (XF86OptionPtr list, const char *name) * returned. If the option is not found, a NULL is returned. */ -__attribute__((visibility("default"))) char * +_X_EXPORT char * xf86findOptionValue (XF86OptionPtr list, const char *name) { XF86OptionPtr p = xf86findOption (list, name); diff --git a/hw/xfree86/parser/scan.c b/hw/xfree86/parser/scan.c index 36061c889..9706d483b 100644 --- a/hw/xfree86/parser/scan.c +++ b/hw/xfree86/parser/scan.c @@ -64,6 +64,7 @@ #include <string.h> #include <unistd.h> #include <stdarg.h> +#include <X11/Xfuncproto.h> #if !defined(X_NOT_POSIX) #if defined(_POSIX_SOURCE) @@ -939,7 +940,7 @@ StringToToken (char *str, xf86ConfigSymTabRec * tab) * Compare two names. The characters '_', ' ', and '\t' are ignored * in the comparison. */ -__attribute__((visibility("default"))) int +_X_EXPORT int xf86nameCompare (const char *s1, const char *s2) { char c1, c2; |