mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix preprocessor for MacOS version.
This commit is contained in:
parent
6a7bd9018b
commit
ceb092c71f
@ -33,7 +33,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#ifdef __MAC_10_10
|
#ifdef __MACH__
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#else
|
#else
|
||||||
#include <tr1/unordered_set>
|
#include <tr1/unordered_set>
|
||||||
@ -58,7 +58,7 @@ static const char FILE_CACHE_SEPARATOR_CHAR = '|' ;
|
|||||||
****/
|
****/
|
||||||
|
|
||||||
static RsMutex FIndexPtrMtx("FIndexPtrMtx") ;
|
static RsMutex FIndexPtrMtx("FIndexPtrMtx") ;
|
||||||
#ifdef __MAC_10_10
|
#ifdef __MACH__
|
||||||
std::unordered_set<void*> FileIndex::_pointers ;
|
std::unordered_set<void*> FileIndex::_pointers ;
|
||||||
#else
|
#else
|
||||||
std::tr1::unordered_set<void*> FileIndex::_pointers ;
|
std::tr1::unordered_set<void*> FileIndex::_pointers ;
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
#if __MAC_10_10
|
#if __MACH__
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#else
|
#else
|
||||||
#include <tr1/unordered_set>
|
#include <tr1/unordered_set>
|
||||||
@ -250,7 +250,7 @@ class FileIndex
|
|||||||
|
|
||||||
PersonEntry *root;
|
PersonEntry *root;
|
||||||
|
|
||||||
#ifdef __MAC_10_10
|
#ifdef __MACH__
|
||||||
static std::unordered_set<void*> _pointers ;
|
static std::unordered_set<void*> _pointers ;
|
||||||
#else
|
#else
|
||||||
static std::tr1::unordered_set<void*> _pointers ;
|
static std::tr1::unordered_set<void*> _pointers ;
|
||||||
|
@ -43,8 +43,14 @@ macx {
|
|||||||
INC_DIR += "/opt/local/include"
|
INC_DIR += "/opt/local/include"
|
||||||
LIB_DIR += "/usr/local/lib"
|
LIB_DIR += "/usr/local/lib"
|
||||||
LIB_DIR += "/opt/local/lib"
|
LIB_DIR += "/opt/local/lib"
|
||||||
QMAKE_MACOSX_DEPLOYMENT_TARGET=10.10
|
!QMAKE_MACOSX_DEPLOYMENT_TARGET {
|
||||||
QMAKE_MAC_SDK = macosx10.10
|
message(***retroshare.pri: No Target, set it to MacOS 10.10 )
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET=10.10
|
||||||
|
}
|
||||||
|
!QMAKE_MAC_SDK {
|
||||||
|
message(***retroshare.pri: No SDK, set it to MacOS 10.10 )
|
||||||
|
QMAKE_MAC_SDK = macosx10.10
|
||||||
|
}
|
||||||
CONFIG += c+11
|
CONFIG += c+11
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user