You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2012/11/13 03:13:13 UTC
[lucy-commits] [7/16] 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.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/0228d328
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/0228d328
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/0228d328
Branch: refs/heads/master
Commit: 0228d3280deef4474b6af6050a5fc8846092acaa
Parents: bd21497
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Nov 4 17:12:55 2012 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Mon Nov 12 21:07:26 2012 +0100
----------------------------------------------------------------------
perl/xs/XSBind.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/0228d328/perl/xs/XSBind.h
----------------------------------------------------------------------
diff --git a/perl/xs/XSBind.h b/perl/xs/XSBind.h
index 9348fc5..1743552 100644
--- a/perl/xs/XSBind.h
+++ b/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.
*/