diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/squirrel_class.hpp | 8 | ||||
-rw-r--r-- | src/script/squirrel_helper_type.hpp | 2 |
2 files changed, 1 insertions, 9 deletions
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 */ |