Skip to content

Commit b786982

Browse files
numberZerosfan5
authored andcommittedNov 11, 2018
Minor changes for IrrLicht 1.9 support
1 parent 4f9c33d commit b786982

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed
 

Diff for: ‎src/gui/intlGUIEditBox.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
#include <util/numeric.h>
3333
#include "intlGUIEditBox.h"
3434

35-
#if defined(_IRR_COMPILE_WITH_GUI_) && IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 9 || defined(__ANDROID__)
36-
3735
#include "IGUISkin.h"
3836
#include "IGUIEnvironment.h"
3937
#include "IGUIFont.h"
@@ -1591,5 +1589,3 @@ void intlGUIEditBox::deserializeAttributes(io::IAttributes* in, io::SAttributeRe
15911589

15921590
} // end namespace gui
15931591
} // end namespace irr
1594-
1595-
#endif // _IRR_COMPILE_WITH_GUI_

Diff for: ‎src/irrlichttypes.h

+15
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
3131
#endif
3232

3333
#include <irrTypes.h>
34+
#include <irrMath.h>
3435

3536
using namespace irr;
3637

38+
namespace irr {
39+
3740
// Irrlicht 1.8+ defines 64bit unsigned symbol in irrTypes.h
3841
#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
3942
#ifdef _MSC_VER
@@ -47,6 +50,18 @@ using namespace irr;
4750
#endif
4851
#endif
4952

53+
#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 9)
54+
namespace core {
55+
template <>
56+
inline s16 roundingError()
57+
{
58+
return 0;
59+
}
60+
}
61+
#endif
62+
63+
}
64+
5065
#define S8_MIN (-0x7F - 1)
5166
#define S16_MIN (-0x7FFF - 1)
5267
#define S32_MIN (-0x7FFFFFFF - 1)

0 commit comments

Comments
 (0)
Please sign in to comment.