(svn r23801) -Fix: reading the utf-8 BOM from AI/GS files on big-endian machines failed

This commit is contained in:
yexo
2012-01-15 11:31:34 +00:00
parent 48717ade9c
commit f5b6a9db5c
3 changed files with 12 additions and 10 deletions

View File

@@ -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")

View File

@@ -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
{