Tried compiling with ICC9 on Linux, which raised various issues:

* Fixed some bugs with incorrect macro usage (SDL_BYTE_ORDER vs
SDL_BYTEORDER, {MSC,GCC}_VER vs {MSC,GCC}_VERSION, OS_WIN/OS_UNIX in
projects where they're not defined).
 * Removed some redundant declarations of g_Console.
 * Removed some unnecessary semicolons.
 * Removed some unused variables.
 * Added throw specification to operator new.

This was SVN commit r4698.
This commit is contained in:
Ykkrosh
2006-12-16 01:01:15 +00:00
parent 173c56140c
commit 13f2e3ca0c
45 changed files with 60 additions and 78 deletions
+2 -1
View File
@@ -2,9 +2,10 @@
#include "StringConvert.h"
#include "lib/types.h"
#include "lib/sdl.h"
#include "scripting/SpiderMonkey.h"
#if SDL_BYTE_ORDER == SDL_BIG_ENDIAN
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
#define ucs2le_to_wchart(ptr) (wchar_t)( (u16) ((u8*)ptr)[0] | (u16) ( ((u8*)ptr)[1] << 8) )
#else
#define ucs2le_to_wchart(ptr) (wchar_t)(*ptr);