summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-15 02:20:38 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-15 02:20:38 +0000
commit703d5b96fecbcaa3c1fd21cc55cf3e1e3d689dfd (patch)
treef943876c0ad7081d452a68d24aef62fc795bed12
parentd2dc7df061242c4e0d143892c4b02841e3fe8e5e (diff)
downloadswig-703d5b96fecbcaa3c1fd21cc55cf3e1e3d689dfd.tar.gz
Fix extern "C"
-rw-r--r--Source/Modules/lua.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Modules/lua.cxx b/Source/Modules/lua.cxx
index 9bb1374e1..a150ed1c1 100644
--- a/Source/Modules/lua.cxx
+++ b/Source/Modules/lua.cxx
@@ -73,8 +73,11 @@ void display_mapping(DOH *d) {
}
}
-extern "C" static int compareByLen(const DOH *f, const DOH *s) {
- return Len(s) - Len(f);
+extern "C"
+{
+ static int compareByLen(const DOH *f, const DOH *s) {
+ return Len(s) - Len(f);
+ }
}