summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-09-10 23:14:21 +0000
committeryexo <yexo@openttd.org>2009-09-10 23:14:21 +0000
commitc9a25c88fa522fa778c2de827d98cce46700d1f6 (patch)
tree783e5c6172a16abb812e17f5dcfb60589529ff96
parentca6c4ee98ade5710757ed662108823525a4ee4c7 (diff)
downloadopenttd-c9a25c88fa522fa778c2de827d98cce46700d1f6.tar.xz
(svn r17499) -Fix (r17498): remove 2 unused functions so some compilers stop warning about them
-rw-r--r--src/3rdparty/squirrel/sqstdlib/sqstdmath.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/3rdparty/squirrel/sqstdlib/sqstdmath.cpp b/src/3rdparty/squirrel/sqstdlib/sqstdmath.cpp
index 0e8847dcf..132f341f2 100644
--- a/src/3rdparty/squirrel/sqstdlib/sqstdmath.cpp
+++ b/src/3rdparty/squirrel/sqstdlib/sqstdmath.cpp
@@ -21,6 +21,7 @@
return 1; \
}
+#ifdef EXPORT_DEFAULT_SQUIRREL_FUNCTIONS
static SQInteger math_srand(HSQUIRRELVM v)
{
SQInteger i;
@@ -35,6 +36,7 @@ static SQInteger math_rand(HSQUIRRELVM v)
sq_pushinteger(v,rand());
return 1;
}
+#endif /* EXPORT_DEFAULT_SQUIRREL_FUNCTIONS */
static SQInteger math_abs(HSQUIRRELVM v)
{