You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2012/11/17 02:07:40 UTC
[lucy-commits] [9/9] git commit: refs/heads/master - Move #includes in XSBind.h
outside of extern "C" block
Move #includes in XSBind.h outside of extern "C" block
MSVC6 complains if math.h is included in an extern "C" block when compiling
in C++ mode.
(Application of 0228d3280d to duplicate file.)
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/ad882ac1
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/ad882ac1
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/ad882ac1
Branch: refs/heads/master
Commit: ad882ac17b1343d4259b1e8d55c2a42ddd622262
Parents: 413bf56
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Fri Nov 16 15:58:45 2012 -0800
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Fri Nov 16 16:17:25 2012 -0800
----------------------------------------------------------------------
clownfish/runtime/perl/xs/XSBind.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/ad882ac1/clownfish/runtime/perl/xs/XSBind.h
----------------------------------------------------------------------
diff --git a/clownfish/runtime/perl/xs/XSBind.h b/clownfish/runtime/perl/xs/XSBind.h
index 9348fc5..1743552 100644
--- a/clownfish/runtime/perl/xs/XSBind.h
+++ b/clownfish/runtime/perl/xs/XSBind.h
@@ -20,10 +20,6 @@
#ifndef H_CFISH_XSBIND
#define H_CFISH_XSBIND 1
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include "charmony.h"
#include "Clownfish/Obj.h"
#include "Clownfish/ByteBuf.h"
@@ -43,6 +39,10 @@ extern "C" {
#define XSBIND_EXTERN CHY_EXPORT
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** Given either a class name or a perl object, manufacture a new Clownfish
* object suitable for supplying to a cfish_Foo_init() function.
*/