Support MSVC 2015. Tested(*) with updated dependencies:

- Microsoft Visual Studio Community 2015 Version 14.0.23107.0 D14REL
- Qt 5.5, commit 1d3966833b5f27fb262f2d3727557ef2c8947828
- SDL2 default branch, Changeset: 9834 (d3fa6d0d3793)
- Ogre default branch, Changeset: 8048 (19479be2c7c5)
- Boost 1.59, commit 9a02cf8eb34eb31f0858c223ce95319f103addfa
- OpenAL commit 8fa4f276f89985be44007ce166109837cbfd5763

(*) only tested compilation and startup of the each app
pull/541/head
cc9cii 10 years ago
parent 8acc2f31ff
commit b920e1bde7

@ -1,4 +1,5 @@
#include <iostream>
#include <iomanip>
#include <vector>
#include <exception>

@ -1,7 +1,11 @@
#include "importer.hpp"
#include <iomanip>
#include <boost/shared_ptr.hpp>
#include <OgreRoot.h>
#include <OgreLogManager.h>
#include <components/esm/esmreader.hpp>
#include <components/esm/esmwriter.hpp>

@ -4,6 +4,8 @@
#include <OgreSceneManager.h>
#include <OgreEntity.h>
#include <OgreMeshManager.h>
#include <OgreCamera.h>
#include <OgreViewport.h>
#include <QMouseEvent>
#include <QElapsedTimer>

@ -1,5 +1,6 @@
#include "overlaymask.hpp"
#include <OgreOverlay.h>
#include <OgreOverlayManager.h>
#include <OgreOverlayContainer.h>

@ -12,6 +12,8 @@
#include <OgreOverlayManager.h>
#include <OgreRoot.h>
#include <OgreSceneQuery.h>
#include <OgreSceneNode.h>
#include <OgreViewport.h>
#include <components/esm/loadland.hpp>
#include "textoverlay.hpp"

@ -5,9 +5,11 @@
#include <OgreTechnique.h>
#include <OgreOverlayManager.h>
#include <OgreOverlay.h>
#include <OgreOverlayContainer.h>
#include <OgreFontManager.h>
#include <OgreTextAreaOverlayElement.h>
#include <OgreTextureManager.h>
#include <OgreEntity.h>
#include <OgreViewport.h>
#include <OgreRoot.h>

@ -5,6 +5,8 @@
#include <OgreRay.h>
#include <OgreCamera.h>
#include <OgreSceneManager.h>
#include <OgreSceneNode.h>
#include <OgreViewport.h>
#include <openengine/bullet/physic.hpp>
#include <components/nifbullet/bulletnifloader.hpp>

@ -4,6 +4,7 @@
#include <iomanip>
#include <OgreRoot.h>
#include <OgreTimer.h>
#include <OgreRenderWindow.h>
#include <MyGUI_WidgetManager.h>

@ -1,11 +1,15 @@
#include "worldimp.hpp"
#if defined(_WIN32) && !defined(__MINGW32__)
#include <boost/tr1/tr1/unordered_map>
# if (_MSC_VER < 1900)
# include <boost/tr1/tr1/unordered_map>
# else
# include <unordered_map>
# endif
#elif defined HAVE_UNORDERED_MAP
#include <unordered_map>
# include <unordered_map>
#else
#include <tr1/unordered_map>
# include <tr1/unordered_map>
#endif
#include "../mwbase/scriptmanager.hpp"
#include "../mwscript/globalscripts.hpp"

@ -104,7 +104,7 @@ public:
void load() {}
void unload() {}
DataStreamPtr open(const String& filename, bool readonly = true) const
virtual DataStreamPtr open(const String& filename, bool readonly = true)
{
index::const_iterator i = lookup_filename (filename);
@ -149,8 +149,8 @@ public:
time_t getModifiedTime(const String&) { return 0; }
FileInfoListPtr findFileInfo(const String& pattern, bool recursive = true,
bool dirs = false) const
virtual FileInfoListPtr findFileInfo(const String& pattern, bool recursive = true,
bool dirs = false)
{
std::string normalizedPattern = normalize_path(pattern.begin(), pattern.end());
FileInfoListPtr ptr = FileInfoListPtr(new FileInfoList());
@ -216,7 +216,7 @@ public:
void load() {}
void unload() {}
DataStreamPtr open(const String& filename, bool readonly = true) const
virtual DataStreamPtr open(const String& filename, bool readonly = true)
{
// Get a non-const reference to arc. This is a hack and it's all
// OGRE's fault. You should NOT expect an open() command not to
@ -262,8 +262,8 @@ public:
return ptr;
}
FileInfoListPtr findFileInfo(const String& pattern, bool recursive = true,
bool dirs = false) const
virtual FileInfoListPtr findFileInfo(const String& pattern, bool recursive = true,
bool dirs = false)
{
std::string normalizedPattern = normalize_path(pattern.begin(), pattern.end());
FileInfoListPtr ptr = FileInfoListPtr(new FileInfoList());

@ -2,7 +2,11 @@
#define COMPONENTS_FILES_CONFIGURATIONMANAGER_HPP
#if defined(_WIN32) && !defined(__MINGW32__)
#include <boost/tr1/tr1/unordered_map>
#if (_MSC_VER >= 1900)
#include <unordered_map>
#else
#include <boost/unordered_map.hpp>
#endif
#elif defined HAVE_UNORDERED_MAP
#include <unordered_map>
#else

@ -2,6 +2,7 @@
#include <stdexcept>
#include <OgreString.h> // FIXME: workaround compilation error with OgreCommon.h included by OgreStringConverter.h
#include <OgreStringConverter.h>
#include <boost/filesystem/fstream.hpp>

@ -24,6 +24,7 @@
#include <OgreSceneManager.h>
#include <OgreSceneNode.h>
#include <OgreAxisAlignedBox.h>
#include <OgreTextureManager.h>
#include "chunk.hpp"

@ -9,7 +9,9 @@
#elif defined(MSVC) || defined(_MSC_VER)
# pragma warning(disable: 4996)
# define strcasecmp stricmp
# define snprintf _snprintf
# if (_MSC_VER < 1900)
# define snprintf _snprintf
# endif
#else
# warning "Unable to determine your compiler, you should probably take a look here."
# include <strings.h> // Just take a guess

Loading…
Cancel
Save