aboutsummaryrefslogtreecommitdiff
path: root/X11/Xlibint.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-07-01 11:35:04 +0200
committermarha <marha@users.sourceforge.net>2013-07-01 11:35:04 +0200
commit6d46609dfd488f9433d0ed10f49d05e31a6fe51e (patch)
treeb39a9e9ed55707a087244ca676e6654e844a3c61 /X11/Xlibint.h
parent3c204c4a20943586532ce477ced827d108f3b4b0 (diff)
downloadvcxsrv-6d46609dfd488f9433d0ed10f49d05e31a6fe51e.tar.gz
vcxsrv-6d46609dfd488f9433d0ed10f49d05e31a6fe51e.tar.bz2
vcxsrv-6d46609dfd488f9433d0ed10f49d05e31a6fe51e.zip
Synchronised files
Diffstat (limited to 'X11/Xlibint.h')
-rw-r--r--X11/Xlibint.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/X11/Xlibint.h b/X11/Xlibint.h
index f71692c5d..ff2975fe7 100644
--- a/X11/Xlibint.h
+++ b/X11/Xlibint.h
@@ -835,6 +835,15 @@ typedef struct _XExten { /* private to extension mechanism */
struct _XExten *next_flush; /* next in list of those with flushes */
} _XExtension;
+/* Temporary definition until we can depend on an xproto release with it */
+#ifdef _X_COLD
+# define _XLIB_COLD _X_COLD
+#elif defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 403) /* 4.3+ */
+# define _XLIB_COLD __attribute__((__cold__))
+#else
+# define _XLIB_COLD /* nothing */
+#endif
+
/* extension hooks */
#ifdef DataRoutineIsProcedure
@@ -857,7 +866,14 @@ X11_EXTERN int (*_XErrorFunction)(
extern void _XEatData(
Display* /* dpy */,
unsigned long /* n */
-);
+) _XLIB_COLD;
+extern void _XEatDataWords(
+ Display* /* dpy */,
+ unsigned long /* n */
+) _XLIB_COLD;
+#if defined(__SUNPRO_C) /* Studio compiler alternative to "cold" attribute */
+# pragma rarely_called(_XEatData, _XEatDataWords)
+#endif
extern char *_XAllocScratch(
Display* /* dpy */,
unsigned long /* nbytes */