1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-23 02:42:39 +01:00

Merge pull request #33 from christoph-heiss/osx-port

OS X port of OpenRW
This commit is contained in:
Daniel Evans 2016-05-21 01:03:01 +01:00
commit 1b85926f36
4 changed files with 9 additions and 1 deletions

View File

@ -26,10 +26,16 @@ option(ENABLE_PROFILING "Enable detailed profiling metrics")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_definitions(-DRW_LINUX=1)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_definitions(-DRW_OSX=1)
else ()
message(FATAL_ERROR "Unknown platform \"${CMAKE_SYSTEM_NAME}\". please update CMakeLists.txt.")
endif ()
if (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-array-member-paren-init")
endif()
# Make GLM use radians
add_definitions(-DGLM_FORCE_RADIANS)

View File

@ -4,6 +4,7 @@
#include <glm/glm.hpp>
#include <map>
#include <vector>
#include <string>
/**
* @brief Stores data from .CUT files

View File

@ -10,6 +10,7 @@
#include <stack>
#include <list>
#include <set>
#include <array>
#define SCM_NEGATE_CONDITIONAL_MASK 0x8000
#define SCM_CONDITIONAL_MASK_PASSED 0xFF

View File

@ -30,7 +30,7 @@
*/
std::string findPathRealCase(const std::string& base, const std::string& path)
{
#ifdef __unix__
#ifndef _WIN32
size_t endslash = path.find("/");
bool isDirectory = true;
if(endslash == path.npos) {