summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-15 02:02:40 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-15 02:02:40 +0000
commitd2dc7df061242c4e0d143892c4b02841e3fe8e5e (patch)
tree8bf4d595eb8dbd5673afbf8fda3e16090a756255
parent300ade57e8d943c146e97b6df308f44a01608463 (diff)
downloadswig-d2dc7df061242c4e0d143892c4b02841e3fe8e5e.tar.gz
Compiler fixes for Sun Workshop compiler
-rw-r--r--Source/Modules/lua.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Modules/lua.cxx b/Source/Modules/lua.cxx
index 002c6eb3a..9bb1374e1 100644
--- a/Source/Modules/lua.cxx
+++ b/Source/Modules/lua.cxx
@@ -73,6 +73,11 @@ void display_mapping(DOH *d) {
}
}
+extern "C" static int compareByLen(const DOH *f, const DOH *s) {
+ return Len(s) - Len(f);
+}
+
+
/* NEW LANGUAGE NOTE:***********************************************
most of the default options are handled by SWIG
you can add new ones here
@@ -2064,10 +2069,6 @@ public:
Printv(output, "\n", NIL);
}
- static int compareByLen(const DOH *f, const DOH *s) {
- return Len(s) - Len(f);
- }
-
/* -----------------------------------------------------------------------------
* closeNamespaces()
*