X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsyncableobject.h;h=bec189a62c29e37bdee99adbf3609955c9fcbb58;hp=28e14720e4ea15f3067e3fb04ada16770facc813;hb=5736e6f3ac874aa05cdc87706471e37f7ab6fffc;hpb=3006bf7e7daf1c59b39600b198d746559aaa3bef diff --git a/src/common/syncableobject.h b/src/common/syncableobject.h index 28e14720..bec189a6 100644 --- a/src/common/syncableobject.h +++ b/src/common/syncableobject.h @@ -33,13 +33,13 @@ #define SYNCABLE_OBJECT static const int _classNameOffset__; #define INIT_SYNCABLE_OBJECT(x) const int x ::_classNameOffset__ = QByteArray(staticMetaObject.className()).length() + 2; -#ifdef Q_WS_WIN +#ifdef Q_CC_MSVC # define SYNC(...) sync_call__(SignalProxy::Server, (__FUNCTION__ + _classNameOffset__), __VA_ARGS__); # define REQUEST(...) sync_call__(SignalProxy::Client, (__FUNCTION__ + _classNameOffset__) , __VA_ARGS__); #else # define SYNC(...) sync_call__(SignalProxy::Server, __func__, __VA_ARGS__); # define REQUEST(...) sync_call__(SignalProxy::Client, __func__, __VA_ARGS__); -#endif //Q_WS_WIN +#endif //Q_CC_MSVC #define SYNC_OTHER(x, ...) sync_call__(SignalProxy::Server, #x, __VA_ARGS__); #define REQUEST_OTHER(x, ...) sync_call__(SignalProxy::Client, #x, __VA_ARGS__);