From c03ce4b1c704ef638374f56bbb9692db0e4e354c Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 1 Jun 2009 11:49:46 +0000 Subject: (svn r16492) -Remove: support for gcc2. It hasn't been able to compile OTTD for months. All attempts to do another workaround failed. --- src/script/squirrel_class.hpp | 8 -------- src/script/squirrel_helper_type.hpp | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'src/script') diff --git a/src/script/squirrel_class.hpp b/src/script/squirrel_class.hpp index 20e838089..b8f098159 100644 --- a/src/script/squirrel_class.hpp +++ b/src/script/squirrel_class.hpp @@ -5,14 +5,6 @@ #ifndef SQUIRREL_CLASS_HPP #define SQUIRREL_CLASS_HPP -#if (__GNUC__ == 2) -/* GCC 2.95 doesn't like to have SQConvert::DefSQStaticCallback inside a - * template (it gives an internal error 373). Above that, it doesn't listen - * to 'using namespace' inside a function of a template. So for GCC 2.95 we - * do it in the global space to avoid compiler errors. */ -using namespace SQConvert; -#endif /* __GNUC__ == 2 */ - /** * The template to define classes in Squirrel. It takes care of the creation * and calling of such classes, to make the AI Layer cleaner while having a diff --git a/src/script/squirrel_helper_type.hpp b/src/script/squirrel_helper_type.hpp index c886d6700..3b340ad8e 100644 --- a/src/script/squirrel_helper_type.hpp +++ b/src/script/squirrel_helper_type.hpp @@ -7,7 +7,7 @@ struct Array { int32 size; - int32 array[VARARRAY_SIZE]; + int32 array[]; }; #endif /* SQUIRREL_HELPER_TYPE_HPP */ -- cgit v1.2.3-54-g00ecf