diff options
Diffstat (limited to 'SwifTools/Idle/PlatformIdleQuerier.cpp')
-rw-r--r-- | SwifTools/Idle/PlatformIdleQuerier.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/SwifTools/Idle/PlatformIdleQuerier.cpp b/SwifTools/Idle/PlatformIdleQuerier.cpp index 76a3f7d..80a5da3 100644 --- a/SwifTools/Idle/PlatformIdleQuerier.cpp +++ b/SwifTools/Idle/PlatformIdleQuerier.cpp @@ -1,6 +1,9 @@ #include "SwifTools/Idle/PlatformIdleQuerier.h" +#include "Swiften/Base/Platform.h" -#if defined(HAVE_XSS) +#if defined(SWIFTEN_PLATFORM_MACOSX) +#include "SwifTools/Idle/MacOSXIdleQuerier.h" +#elif defined(HAVE_XSS) #include "SwifTools/Idle/XSSIdleQuerier.h" #else #include "SwifTools/Idle/DummyIdleQuerier.h" @@ -12,7 +15,9 @@ namespace Swift { PlatformIdleQuerier::PlatformIdleQuerier() : querier(NULL) { -#if defined(HAVE_XSS) +#if defined(SWIFTEN_PLATFORM_MACOSX) + querier = new MacOSXIdleQuerier(); +#elif defined(HAVE_XSS) querier = new XSSIdleQuerier(); #else querier = new DummyIdleQuerier(); |