Use _X_EXPORT instead of __attribute__((visibility("default")))
This commit is contained in:
parent
1faba797cb
commit
b77ca7cc9c
|
@ -63,6 +63,7 @@
|
||||||
#include "xf86tokens.h"
|
#include "xf86tokens.h"
|
||||||
#include "Configint.h"
|
#include "Configint.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
extern LexRec val;
|
extern LexRec val;
|
||||||
|
|
||||||
|
@ -330,7 +331,7 @@ xf86findOption (XF86OptionPtr list, const char *name)
|
||||||
* returned. If the option is not found, a NULL is returned.
|
* returned. If the option is not found, a NULL is returned.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
__attribute__((visibility("default"))) char *
|
_X_EXPORT char *
|
||||||
xf86findOptionValue (XF86OptionPtr list, const char *name)
|
xf86findOptionValue (XF86OptionPtr list, const char *name)
|
||||||
{
|
{
|
||||||
XF86OptionPtr p = xf86findOption (list, name);
|
XF86OptionPtr p = xf86findOption (list, name);
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
#if !defined(X_NOT_POSIX)
|
#if !defined(X_NOT_POSIX)
|
||||||
#if defined(_POSIX_SOURCE)
|
#if defined(_POSIX_SOURCE)
|
||||||
|
@ -939,7 +940,7 @@ StringToToken (char *str, xf86ConfigSymTabRec * tab)
|
||||||
* Compare two names. The characters '_', ' ', and '\t' are ignored
|
* Compare two names. The characters '_', ' ', and '\t' are ignored
|
||||||
* in the comparison.
|
* in the comparison.
|
||||||
*/
|
*/
|
||||||
__attribute__((visibility("default"))) int
|
_X_EXPORT int
|
||||||
xf86nameCompare (const char *s1, const char *s2)
|
xf86nameCompare (const char *s1, const char *s2)
|
||||||
{
|
{
|
||||||
char c1, c2;
|
char c1, c2;
|
||||||
|
|
Loading…
Reference in New Issue