mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
Merge pull request #33 from christoph-heiss/osx-port
OS X port of OpenRW
This commit is contained in:
commit
1b85926f36
@ -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)
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
#include <glm/glm.hpp>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
* @brief Stores data from .CUT files
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <stack>
|
||||
#include <list>
|
||||
#include <set>
|
||||
#include <array>
|
||||
|
||||
#define SCM_NEGATE_CONDITIONAL_MASK 0x8000
|
||||
#define SCM_CONDITIONAL_MASK_PASSED 0xFF
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user