Move X_DEPRECATED to misc.h so it can be used outside resource.h
Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
parent
5623908aee
commit
7dde50c649
|
@ -100,6 +100,12 @@ typedef unsigned long ATOM;
|
|||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define X_DEPRECATED __attribute__((deprecated))
|
||||
#else
|
||||
#define X_DEPRECATED
|
||||
#endif
|
||||
|
||||
#ifndef _XTYPEDEF_CALLBACKLISTPTR
|
||||
typedef struct _CallbackList *CallbackListPtr; /* also in dix.h */
|
||||
#define _XTYPEDEF_CALLBACKLISTPTR
|
||||
|
|
|
@ -251,12 +251,6 @@ extern _X_EXPORT RESTYPE TypeMask;
|
|||
* Please use the noted replacements instead.
|
||||
*/
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define X_DEPRECATED __attribute__((deprecated))
|
||||
#else
|
||||
#define X_DEPRECATED
|
||||
#endif
|
||||
|
||||
/* replaced by dixLookupResourceByType */
|
||||
extern _X_EXPORT pointer SecurityLookupIDByType(
|
||||
ClientPtr client,
|
||||
|
|
Loading…
Reference in New Issue
Block a user