Allow custom definition of Q_FORWARD_DECLARE_OBJC_CLASS and friends
Change-Id: I761ef508672d5d4e8b9067a1b5f91debe09607d4 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
parent
40ad539787
commit
dd5e40d9c6
@ -998,13 +998,19 @@ template <bool B, typename T = void> struct QEnableIf;
|
||||
template <typename T> struct QEnableIf<true, T> { typedef T Type; };
|
||||
}
|
||||
|
||||
#ifdef __OBJC__
|
||||
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname) @class classname
|
||||
#else
|
||||
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname) typedef struct objc_object classname
|
||||
#ifndef Q_FORWARD_DECLARE_OBJC_CLASS
|
||||
# ifdef __OBJC__
|
||||
# define Q_FORWARD_DECLARE_OBJC_CLASS(classname) @class classname
|
||||
# else
|
||||
# define Q_FORWARD_DECLARE_OBJC_CLASS(classname) typedef struct objc_object classname
|
||||
# endif
|
||||
#endif
|
||||
#ifndef Q_FORWARD_DECLARE_CF_TYPE
|
||||
# define Q_FORWARD_DECLARE_CF_TYPE(type) typedef const struct __ ## type * type ## Ref
|
||||
#endif
|
||||
#ifndef Q_FORWARD_DECLARE_MUTABLE_CF_TYPE
|
||||
# define Q_FORWARD_DECLARE_MUTABLE_CF_TYPE(type) typedef struct __ ## type * type ## Ref
|
||||
#endif
|
||||
#define Q_FORWARD_DECLARE_CF_TYPE(type) typedef const struct __ ## type * type ## Ref
|
||||
#define Q_FORWARD_DECLARE_MUTABLE_CF_TYPE(type) typedef struct __ ## type * type ## Ref
|
||||
|
||||
QT_END_NAMESPACE
|
||||
// Q_GLOBAL_STATIC
|
||||
|
Loading…
Reference in New Issue
Block a user