summaryrefslogtreecommitdiff
path: root/src/3rdparty/squirrel/include
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-01 12:03:20 +0000
committertruebrain <truebrain@openttd.org>2011-12-01 12:03:20 +0000
commit0c2bbdde5c0f9577cff72af5b34c10777c6bebd0 (patch)
tree3bb5cff8ae5c1151ef99c0f483ff4c17876c7398 /src/3rdparty/squirrel/include
parent71c1ef5d264c5c55cc02b57fe1f9884b50e5400b (diff)
downloadopenttd-0c2bbdde5c0f9577cff72af5b34c10777c6bebd0.tar.xz
(svn r23383) -Update: bring Squirrel to 2.2.5; besides some nice bug fixes, it mostly solves the sort() issues
Diffstat (limited to 'src/3rdparty/squirrel/include')
-rw-r--r--src/3rdparty/squirrel/include/squirrel.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/3rdparty/squirrel/include/squirrel.h b/src/3rdparty/squirrel/include/squirrel.h
index b3864b975..fbbaa8e64 100644
--- a/src/3rdparty/squirrel/include/squirrel.h
+++ b/src/3rdparty/squirrel/include/squirrel.h
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2003-2009 Alberto Demichelis
+Copyright (c) 2003-2011 Alberto Demichelis
This software is provided 'as-is', without any
express or implied warranty. In no event will the
@@ -45,9 +45,11 @@ extern "C" {
#define SQUIRREL_API extern
#endif
-#if (defined(_WIN64) || defined(_LP64)) && !defined(_SQ64)
+#if (defined(_WIN64) || defined(_LP64))
+#ifndef _SQ64
#define _SQ64
#endif
+#endif
#ifdef _SQ64
#ifdef _MSC_VER
@@ -78,13 +80,11 @@ typedef double SQFloat;
typedef float SQFloat;
#endif
-#if defined(SQUSEDOUBLE) && !defined(_SQ64)
+#if defined(SQUSEDOUBLE) && !defined(_SQ64) || !defined(SQUSEDOUBLE) && defined(_SQ64)
#ifdef _MSC_VER
typedef __int64 SQRawObjectVal; //must be 64bits
-#elif defined(_WIN32)
-typedef long long SQRawObjectVal; //must be 64bits
#else
-typedef long SQRawObjectVal; //must be 64bits
+typedef long long SQRawObjectVal; //must be 64bits
#endif
#define SQ_OBJECT_RAWINIT() { _unVal.raw = 0; }
#else
@@ -182,9 +182,10 @@ typedef char SQChar;
#define MAX_CHAR 0xFF
#endif
-#define SQUIRREL_VERSION _SC("Squirrel 2.2.4 stable - With custom OpenTTD modifications")
-#define SQUIRREL_COPYRIGHT _SC("Copyright (C) 2003-2009 Alberto Demichelis")
+#define SQUIRREL_VERSION _SC("Squirrel 2.2.5 stable - With custom OpenTTD modifications")
+#define SQUIRREL_COPYRIGHT _SC("Copyright (C) 2003-2010 Alberto Demichelis")
#define SQUIRREL_AUTHOR _SC("Alberto Demichelis")
+#define SQUIRREL_VERSION_NUMBER 225
#define SQ_VMSTATE_IDLE 0
#define SQ_VMSTATE_RUNNING 1