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 <[email protected]> Authored: Sun Nov 4 17:12:55 2012 +0100 Committer: Nick Wellnhofer <[email protected]> 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
