diff --git a/src/gui/src/AXDatabaseCleaner.h b/src/gui/src/AXDatabaseCleaner.h index 51b25dc9..b759f29c 100644 --- a/src/gui/src/AXDatabaseCleaner.h +++ b/src/gui/src/AXDatabaseCleaner.h @@ -17,6 +17,13 @@ #pragma once +#include + +// HACK: ideally this file should not be included in project, +// if it is below marvericks, but it seems that .pro can't +// specify mac version +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 + class AXDatabaseCleaner { public: AXDatabaseCleaner(); @@ -31,3 +38,5 @@ private: Private* m_private; bool m_waitForResponse; }; + +#endif diff --git a/src/gui/src/AXDatabaseCleaner.mm b/src/gui/src/AXDatabaseCleaner.mm index f870dd78..a7044c2d 100644 --- a/src/gui/src/AXDatabaseCleaner.mm +++ b/src/gui/src/AXDatabaseCleaner.mm @@ -16,6 +16,9 @@ */ #import "AXDatabaseCleaner.h" + +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 + #import #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 #import @@ -159,3 +162,5 @@ bool AXDatabaseCleaner::privilegeCommand(const char* command) return true; } + +#endif diff --git a/src/gui/src/main.cpp b/src/gui/src/main.cpp index af42ee4e..bcfc4e19 100644 --- a/src/gui/src/main.cpp +++ b/src/gui/src/main.cpp @@ -31,9 +31,13 @@ #if defined(Q_OS_MAC) #include + +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 #include "AXDatabaseCleaner.h" #endif +#endif + class QThreadImpl : public QThread { public: