diff options
author | Kristian Høgsberg <[email protected]> | 2010-07-28 10:20:41 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-07-28 16:42:00 -0400 |
commit | 38c51a76533a90cf2c9381c99247cfac45fe70eb (patch) | |
tree | 6e9a020fdb29cb0efd72b5106273ba5bfb8a1b3f /src/glx/glxclient.h | |
parent | 65d98e25770487456eb3d7eb8ec3ec8272f170b1 (diff) |
glx: Use _X_EXPORT instead of our own PUBLIC macro
We're an X client library, so we can use Xfuncproto.h.
Diffstat (limited to 'src/glx/glxclient.h')
-rw-r--r-- | src/glx/glxclient.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index f8691433a69..d6c9afc81b5 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -39,6 +39,7 @@ #define _GLX_client_h_ #include <X11/Xproto.h> #include <X11/Xlibint.h> +#include <X11/Xfuncproto.h> #include <X11/extensions/extutil.h> #define GLX_GLXEXT_PROTOTYPES #include <GL/glx.h> @@ -59,21 +60,6 @@ #include "glxextensions.h" - -/* If we build the library with gcc's -fvisibility=hidden flag, we'll - * use the PUBLIC macro to mark functions that are to be exported. - * - * We also need to define a USED attribute, so the optimizer doesn't - * inline a static function that we later use in an alias. - ajax - */ -#if defined(__GNUC__) -# define PUBLIC __attribute__((visibility("default"))) -# define USED __attribute__((used)) -#else -# define PUBLIC -# define USED -#endif - #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) #define GLX_MAJOR_VERSION 1 /* current version numbers */ @@ -91,9 +77,6 @@ typedef struct _glapi_table __GLapi; #ifdef GLX_DIRECT_RENDERING -#define containerOf(ptr, type, member) \ - (type *)( (char *)ptr - offsetof(type,member) ) - extern void DRI_glXUseXFont(GLXContext CC, Font font, int first, int count, int listbase); |