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; ...@@ -34,7 +34,9 @@ typedef sVec2 vec2;
#define attribute #define attribute
#define varying #define varying
#ifdef _MSC_VER
#pragma warning(disable:4244) #pragma warning(disable:4244)
#endif
struct mat4{ struct mat4{
float m[4][4]; float m[4][4];
......
...@@ -174,8 +174,8 @@ bool CWADReader::scanLocalHeader() ...@@ -174,8 +174,8 @@ bool CWADReader::scanLocalHeader()
return false; return false;
#ifdef __BIG_ENDIAN__ #ifdef __BIG_ENDIAN__
header.numlumps = os::Byteswap::byteswap(header.numlumps); Header.numlumps = os::Byteswap::byteswap(Header.numlumps);
header.infotableofs = os::Byteswap::byteswap(header.infotableofs); Header.infotableofs = os::Byteswap::byteswap(Header.infotableofs);
#endif #endif
File->seek ( Header.infotableofs ); 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