
Add the new Xapi.h header.


Index: include/Imakefile
===================================================================
RCS file: /cvs/xorg/xc/include/Imakefile,v
retrieving revision 1.5
diff -u -p -r1.5 Imakefile
--- include/Imakefile	6 Dec 2004 18:32:50 -0000	1.5
+++ include/Imakefile	24 Feb 2005 00:56:37 -0000
@@ -30,6 +30,7 @@ HEADERS = DECkeysym.h \
 	XF86keysym.h \
 	XWDFile.h \
 	Xalloca.h \
+	Xapi.h \
 	Xarch.h \
 	Xatom.h \
 	Xdefs.h \
--- /dev/null	2005-03-03 21:18:00.546745696 +0100
+++ include/Xapi.h	2005-03-03 22:42:55.000000000 +0100
@@ -0,0 +1,36 @@
+/* $Xorg:$ */
+
+#ifndef XAPI_H
+#define XAPI_H
+
+/*
+ * These definitions come from Mesa/include/GL/gl.h
+ * Please keep them in sync.
+ */
+#if !defined(OPENSTEP) && (defined(NeXT) || defined(NeXT_PDO))
+#define OPENSTEP
+#endif
+
+#if defined(_WIN32) && !defined(__WIN32__) && !defined(__CYGWIN__)
+#define __WIN32__
+#endif
+
+#if !defined(OPENSTEP) && (defined(__WIN32__) && !defined(__CYGWIN__))
+#  if defined(_MSC_VER) || defined(__MINGW32__)
+#    define X11API __declspec(dllexport)
+#  elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag specifying we're building for DLL runtime support */
+#    define X11API __declspec(dllimport)
+#  endif
+#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
+#  define X11API __attribute__((visibility("default")))
+#endif /* WIN32 && !CYGWIN */
+
+#ifndef X11API
+#define X11API extern
+#endif
+
+#ifndef X11APIENTRY
+#define X11APIENTRY
+#endif
+
+#endif /* XAPI_H */
