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:
@@ -21,6 +21,7 @@
|
||||
#include "io/xml_node.hpp"
|
||||
|
||||
#include <string.h>
|
||||
#include <algorithm>
|
||||
|
||||
#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
|
||||
# define isnan _isnan
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <IParticleSystemSceneNode.h>
|
||||
#include <IParticleBoxEmitter.h>
|
||||
#include <ISceneManager.h>
|
||||
#include <algorithm>
|
||||
|
||||
class FadeAwayAffector : public scene::IParticleAffector
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
|
||||
#include "config/user_config.hpp"
|
||||
#include "graphics/irr_driver.hpp"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <IGUIEnvironment.h>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
|
||||
using namespace GUIEngine;
|
||||
using namespace irr::core;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "states_screens/credits.hpp"
|
||||
|
||||
#include <fstream>
|
||||
#include <algorithm>
|
||||
|
||||
#include "irrString.h"
|
||||
using irr::core::stringw;
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <set>
|
||||
#include <algorithm>
|
||||
|
||||
using namespace GUIEngine;
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <map>
|
||||
#include <assert.h>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
namespace tinygettext {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user