Commit 9ecd5ddb authored by hybrid's avatar hybrid

Fix big endian compile problem. Avoid warning under non-msvc compilers.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3366 dfc29bdd-3216-0410-991c-e03cc46cb475
parent d4c81c44
......@@ -34,7 +34,9 @@ typedef sVec2 vec2;
#define attribute
#define varying
#ifdef _MSC_VER
#pragma warning(disable:4244)
#endif
struct mat4{
float m[4][4];
......
......@@ -174,8 +174,8 @@ bool CWADReader::scanLocalHeader()
return false;
#ifdef __BIG_ENDIAN__
header.numlumps = os::Byteswap::byteswap(header.numlumps);
header.infotableofs = os::Byteswap::byteswap(header.infotableofs);
Header.numlumps = os::Byteswap::byteswap(Header.numlumps);
Header.infotableofs = os::Byteswap::byteswap(Header.infotableofs);
#endif
File->seek ( Header.infotableofs );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment