X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=src%2Firrlichttypes.h;h=7da1a4bd2601073645d477db3e3f58aeccd85ca4;hb=ea0df3e4cb75a7a104a81e050c019049219c4fee;hp=7ab83bb7d4b14eea92ad5dc4a0dba072d08e688a;hpb=bfc68d31510bbd40732c19ada51d4683cb050de2;p=minetest.git diff --git a/src/irrlichttypes.h b/src/irrlichttypes.h index 7ab83bb7d..7da1a4bd2 100644 --- a/src/irrlichttypes.h +++ b/src/irrlichttypes.h @@ -1,18 +1,18 @@ /* -Minetest-c55 -Copyright (C) 2010-2011 celeron55, Perttu Ahola +Minetest +Copyright (C) 2010-2013 celeron55, Perttu Ahola This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +GNU Lesser General Public License for more details. -You should have received a copy of the GNU General Public License along +You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ @@ -21,31 +21,21 @@ with this program; if not, write to the Free Software Foundation, Inc., #define IRRLICHTTYPES_HEADER #include -#include -#include -#include -#include -#include -#include -using namespace irr; -typedef core::vector3df v3f; -typedef core::vector3d v3s16; -typedef core::vector3d v3s32; -typedef core::vector2d v2f; -typedef core::vector2d v2s16; -typedef core::vector2d v2s32; -typedef core::vector2d v2u32; -typedef core::vector2d v2f32; +using namespace irr; +// Irrlicht 1.8+ defines 64bit unsigned symbol in irrTypes.h +#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8) #ifdef _MSC_VER // Windows + typedef long long s64; typedef unsigned long long u64; #else // Posix #include + typedef int64_t s64; typedef uint64_t u64; - //typedef unsigned long long u64; +#endif #endif #endif