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/04 17:31:42 UTC

[lucy-commits] [4/6] git commit: refs/heads/msvc6 - Don't include math.h in extern "C" blocks

Don't include math.h in extern "C" blocks

MSVC6 doesn't support it.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/dac28bdd
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/dac28bdd
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/dac28bdd

Branch: refs/heads/msvc6
Commit: dac28bdd55a33680ac1ced3f863ca1b36d231ba5
Parents: 35fa7f1
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Nov 4 17:12:55 2012 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Nov 4 17:20:39 2012 +0100

----------------------------------------------------------------------
 perl/xs/XSBind.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/dac28bdd/perl/xs/XSBind.h
----------------------------------------------------------------------
diff --git a/perl/xs/XSBind.h b/perl/xs/XSBind.h
index 9348fc5..92bd333 100644
--- a/perl/xs/XSBind.h
+++ b/perl/xs/XSBind.h
@@ -20,6 +20,11 @@
 #ifndef H_CFISH_XSBIND
 #define H_CFISH_XSBIND 1
 
+/* Some versions of MSVC's math.h don't work in extern "C" blocks when
+ * compiling as C++.
+ */
+#include <math.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif