Use _X_ATTRIBUTE_PRINTF _X_DEPRECATED _X_NORETURN

Use the values from xproto rather than duplicating the effort

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Jeremy Huddleston
2010-05-13 08:32:00 -07:00
committed by Keith Packard
parent 421606a8ef
commit bca85e2e12
5 changed files with 24 additions and 44 deletions

View File

@@ -100,18 +100,6 @@ typedef unsigned long ATOM;
#define FALSE 0
#endif
#ifdef __GNUC__
#define X_DEPRECATED __attribute__((deprecated))
#else
#define X_DEPRECATED
#endif
#if defined(__GNUC__) && (__GNUC__ > 2)
#define X_NORETURN __attribute__((noreturn))
#else
#define X_NORETURN
#endif
#ifndef _XTYPEDEF_CALLBACKLISTPTR
typedef struct _CallbackList *CallbackListPtr; /* also in dix.h */
#define _XTYPEDEF_CALLBACKLISTPTR