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:
committed by
Keith Packard
parent
421606a8ef
commit
bca85e2e12
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user