Add missing includes for some recent compilers

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14299 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2013-10-24 00:29:05 +00:00
parent ca7b0268d1
commit 35d3807904
11 changed files with 15 additions and 7 deletions

View File

@@ -21,6 +21,7 @@
#include "io/xml_node.hpp"
#include <string.h>
#include <algorithm>
#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
# define isnan _isnan

View File

@@ -32,6 +32,7 @@
#include <IParticleSystemSceneNode.h>
#include <IParticleBoxEmitter.h>
#include <ISceneManager.h>
#include <algorithm>
class FadeAwayAffector : public scene::IParticleAffector
{

View File

@@ -60,11 +60,8 @@ int atoi_p(const char* val)
bool LayoutManager::convertToCoord(std::string& x, int* absolute /* out */, int* percentage /* out */)
{
bool is_number;
int i;
std::istringstream myStream(x);
is_number = (myStream >> i)!=0;
if(!is_number) return false;
int i = 0;
if (!StringUtils::fromString<int>(x, i /* out */)) return false;
if( x[x.size()-1] == '%' ) // percentage
{

View File

@@ -20,6 +20,7 @@
#include <cassert>
#include <stdexcept>
#include <iostream>
#include <algorithm>
#include "config/user_config.hpp"
#include "graphics/irr_driver.hpp"

View File

@@ -18,6 +18,7 @@
#include "guiengine/engine.hpp"
#include "guiengine/widgets/bubble_widget.hpp"
#include "utils/translation.hpp"
#include <algorithm>
#include <IGUIStaticText.h>
#include <IGUIElement.h>

View File

@@ -23,6 +23,7 @@
#include <IGUIEnvironment.h>
#include <sstream>
#include <iostream>
#include <algorithm>
using namespace GUIEngine;
using namespace irr::core;

View File

@@ -17,6 +17,7 @@
#include "guiengine/engine.hpp"
#include "guiengine/widgets/model_view_widget.hpp"
#include <algorithm>
using namespace GUIEngine;
using namespace irr::core;
using namespace irr::gui;

View File

@@ -64,7 +64,8 @@ void SpinnerWidget::add()
{
int i;
std::istringstream myStream(min_s);
bool is_number = (myStream >> i)!=0;
myStream >> i;
bool is_number = (i!=0);
if (is_number)
{
m_min = i;
@@ -79,7 +80,8 @@ void SpinnerWidget::add()
{
int i;
std::istringstream myStream(max_s);
bool is_number = (myStream >> i)!=0;
myStream >> i;
bool is_number = (i!=0);
if (is_number)
{
m_max = i;

View File

@@ -18,6 +18,7 @@
#include "states_screens/credits.hpp"
#include <fstream>
#include <algorithm>
#include "irrString.h"
using irr::core::stringw;

View File

@@ -40,6 +40,7 @@
#include <iostream>
#include <sstream>
#include <set>
#include <algorithm>
using namespace GUIEngine;

View File

@@ -20,6 +20,7 @@
#include <map>
#include <assert.h>
#include <vector>
#include <algorithm>
namespace tinygettext {