From d2dc7df061242c4e0d143892c4b02841e3fe8e5e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 15 Mar 2014 02:02:40 +0000 Subject: [PATCH] Compiler fixes for Sun Workshop compiler --- Source/Modules/lua.cxx | 9 +++++---- 1 file 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() *