summaryrefslogtreecommitdiff
path: root/src/3rdparty
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-01-15 11:31:34 +0000
committeryexo <yexo@openttd.org>2012-01-15 11:31:34 +0000
commitf5b6a9db5c318135ed5dec04aaa92252bcba5584 (patch)
tree572e2ef1bd60e8bf7ec8886ac5bede5d48700dd5 /src/3rdparty
parent48717ade9cc1e59d07d8b8d6fe4c552b6bf09043 (diff)
downloadopenttd-f5b6a9db5c318135ed5dec04aaa92252bcba5584.tar.xz
(svn r23801) -Fix: reading the utf-8 BOM from AI/GS files on big-endian machines failed
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/squirrel/include/squirrel.h2
-rw-r--r--src/3rdparty/squirrel/squirrel/sqlexer.h6
2 files changed, 2 insertions, 6 deletions
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
{