From f5b6a9db5c318135ed5dec04aaa92252bcba5584 Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 15 Jan 2012 11:31:34 +0000 Subject: (svn r23801) -Fix: reading the utf-8 BOM from AI/GS files on big-endian machines failed --- src/3rdparty/squirrel/include/squirrel.h | 2 +- src/3rdparty/squirrel/squirrel/sqlexer.h | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src/3rdparty') diff --git a/src/3rdparty/squirrel/include/squirrel.h b/src/3rdparty/squirrel/include/squirrel.h index 3be425304..1fe023dff 100644 --- a/src/3rdparty/squirrel/include/squirrel.h +++ b/src/3rdparty/squirrel/include/squirrel.h @@ -183,7 +183,7 @@ typedef char SQChar; #define scstrdup strdup #define scstrrchr strrchr #define scstrcat strcat -#define MAX_CHAR 0xFF +#define MAX_CHAR 0xFFFF #endif #define SQUIRREL_VERSION _SC("Squirrel 2.2.5 stable - With custom OpenTTD modifications") diff --git a/src/3rdparty/squirrel/squirrel/sqlexer.h b/src/3rdparty/squirrel/squirrel/sqlexer.h index 4b5ac203c..1d81ab3c8 100644 --- a/src/3rdparty/squirrel/squirrel/sqlexer.h +++ b/src/3rdparty/squirrel/squirrel/sqlexer.h @@ -2,11 +2,7 @@ #ifndef _SQLEXER_H_ #define _SQLEXER_H_ -#ifdef SQUNICODE -typedef SQChar LexChar; -#else -typedef unsigned char LexChar; -#endif +typedef unsigned short LexChar; struct SQLexer { -- cgit v1.2.3-70-g09d2