try to fix gui compile error on mac 10.6 and 10.5
This commit is contained in:
parent
b2f48a0f5b
commit
6df7ba2fc4
|
@ -17,6 +17,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <QtCore>
|
||||
|
||||
// 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
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
*/
|
||||
|
||||
#import "AXDatabaseCleaner.h"
|
||||
|
||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
||||
#import <ServiceManagement/ServiceManagement.h>
|
||||
|
@ -159,3 +162,5 @@ bool AXDatabaseCleaner::privilegeCommand(const char* command)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -31,9 +31,13 @@
|
|||
|
||||
#if defined(Q_OS_MAC)
|
||||
#include <Carbon/Carbon.h>
|
||||
|
||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
|
||||
#include "AXDatabaseCleaner.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
class QThreadImpl : public QThread
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue