mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-27 18:30:56 +00:00
MacOSX buildfix
This commit is contained in:
parent
349f1bd56b
commit
d60f685ae8
@ -122,6 +122,10 @@ if(NOT MSVC)
|
|||||||
add_definitions(-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64)
|
add_definitions(-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(BLACKBERRY)
|
if(BLACKBERRY)
|
||||||
add_definitions(-D_QNX_SOURCE=1 -D_C99=1)
|
add_definitions(-D_QNX_SOURCE=1 -D_C99=1)
|
||||||
endif()
|
endif()
|
||||||
|
@ -40,10 +40,12 @@
|
|||||||
#include "../ext/snappy/snappy-c.h"
|
#include "../ext/snappy/snappy-c.h"
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
#ifndef __APPLE__
|
||||||
namespace std {
|
namespace std {
|
||||||
using tr1::is_pointer;
|
using tr1::is_pointer;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
struct LinkedListItem : public T
|
struct LinkedListItem : public T
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
|
|
||||||
void Log(LogTypes::LOG_LEVELS, const char *msg);
|
void Log(LogTypes::LOG_LEVELS, const char *msg);
|
||||||
|
|
||||||
bool IsValid() { return (m_logfile != NULL); }
|
bool IsValid() { if (!m_logfile) return false; else return true; }
|
||||||
bool IsEnabled() const { return m_enable; }
|
bool IsEnabled() const { return m_enable; }
|
||||||
void SetEnable(bool enable) { m_enable = enable; }
|
void SetEnable(bool enable) { m_enable = enable; }
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z))
|
#define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z))
|
||||||
#define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
|
#define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
|
||||||
|
|
||||||
#if GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ && !defined(ANDROID) && !defined(__SYMBIAN32__)
|
#if GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ && !defined(ANDROID) && !defined(__SYMBIAN32__) || defined(__APPLE__)
|
||||||
// GCC 4.4 provides <mutex>
|
// GCC 4.4 provides <mutex>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user