1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 18:45:38 +00:00

Small define/include fixes for compiling on windows

This commit is contained in:
Alexander "Ace" Olofsson 2012-02-23 20:06:06 +01:00
parent 5f72199419
commit f6a80bfc95
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,11 @@
#ifndef COMPONENTS_FILES_CONFIGURATIONMANAGER_HPP #ifndef COMPONENTS_FILES_CONFIGURATIONMANAGER_HPP
#define COMPONENTS_FILES_CONFIGURATIONMANAGER_HPP #define COMPONENTS_FILES_CONFIGURATIONMANAGER_HPP
#ifdef _WIN32
#include <boost/tr1/tr1/unordered_map>
#else
#include <tr1/unordered_map> #include <tr1/unordered_map>
#endif
#include <boost/program_options.hpp> #include <boost/program_options.hpp>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>

View file

@ -30,7 +30,7 @@
#include <components/files/linuxpath.hpp> #include <components/files/linuxpath.hpp>
namespace Files { typedef LinuxPath TargetPathType; } namespace Files { typedef LinuxPath TargetPathType; }
#elif defined(__WIN32) || defined(__WINDOWS__) #elif defined(__WIN32) || defined(__WINDOWS__) || defined(_WIN32)
#include <components/files/windowspath.hpp> #include <components/files/windowspath.hpp>
namespace Files { typedef WindowsPath TargetPathType; } namespace Files { typedef WindowsPath TargetPathType; }