Fixes for building in MSVC

0.6.1
Allofich 8 years ago
parent 63f101e0cd
commit 42402976e3

@ -1,5 +1,7 @@
#include "containeritemmodel.hpp" #include "containeritemmodel.hpp"
#include <algorithm>
#include "../mwworld/containerstore.hpp" #include "../mwworld/containerstore.hpp"
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"

@ -1,5 +1,7 @@
#include "skyextensions.hpp" #include "skyextensions.hpp"
#include <algorithm>
#include <components/compiler/extensions.hpp> #include <components/compiler/extensions.hpp>
#include <components/compiler/opcodes.hpp> #include <components/compiler/opcodes.hpp>

@ -4,6 +4,7 @@
#include <stdexcept> #include <stdexcept>
#include <sstream> #include <sstream>
#include <algorithm>
#include <components/vfs/manager.hpp> #include <components/vfs/manager.hpp>

@ -2,6 +2,7 @@
#include <stdint.h> #include <stdint.h>
#include <limits> #include <limits>
#include <algorithm>
#include "soundmanagerimp.hpp" #include "soundmanagerimp.hpp"

@ -1,6 +1,8 @@
#ifndef GAME_SOUND_SOUND_H #ifndef GAME_SOUND_SOUND_H
#define GAME_SOUND_SOUND_H #define GAME_SOUND_SOUND_H
#include <algorithm>
#include "sound_output.hpp" #include "sound_output.hpp"
namespace MWSound namespace MWSound

@ -58,7 +58,7 @@ MWState::Character* MWState::CharacterManager::createCharacter(const std::string
// The character name is user-supplied, so we need to escape the path // The character name is user-supplied, so we need to escape the path
for (std::string::const_iterator it = name.begin(); it != name.end(); ++it) for (std::string::const_iterator it = name.begin(); it != name.end(); ++it)
{ {
if (std::isalnum(*it)) // Ignores multibyte characters and non alphanumeric characters if (isalnum(*it)) // Ignores multibyte characters and non alphanumeric characters
stream << *it; stream << *it;
else else
stream << "_"; stream << "_";

@ -1,6 +1,7 @@
#include "constrainedfilestream.hpp" #include "constrainedfilestream.hpp"
#include <streambuf> #include <streambuf>
#include <algorithm>
#include "lowlevelfile.hpp" #include "lowlevelfile.hpp"

@ -1,5 +1,7 @@
#include "controller.hpp" #include "controller.hpp"
#include <algorithm>
#include "statesetupdater.hpp" #include "statesetupdater.hpp"
#include <osg/Drawable> #include <osg/Drawable>

Loading…
Cancel
Save