Applied same patch from hilnius branch to fix compilation (to
avoid conflicts when merging later). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13568 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
616fc2b5be
commit
d08583b19f
@ -19,15 +19,21 @@
|
||||
#include "guiengine/modaldialog.hpp"
|
||||
#include "guiengine/widgets/rating_bar_widget.hpp"
|
||||
#include "utils/string_utils.hpp"
|
||||
#include <string.h>
|
||||
|
||||
#include <IGUIEnvironment.h>
|
||||
#include <IGUIElement.h>
|
||||
#include <IGUIButton.h>
|
||||
#include <cmath>
|
||||
#ifndef round
|
||||
# define round(x) (floor(x+0.5f))
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
// VS up to and including VS 2012 do not provide the normal round function
|
||||
static inline double round(double val)
|
||||
{
|
||||
return floor(val + 0.5);
|
||||
}
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
||||
using namespace GUIEngine;
|
||||
using namespace irr::core;
|
||||
|
Loading…
Reference in New Issue
Block a user