From 2b8e0f210d330f2fa56d606609f9fb83be748a88 Mon Sep 17 00:00:00 2001
From: Alberto Massari <amassari@apache.org>
Date: Wed, 18 Oct 2006 14:05:44 +0000
Subject: [PATCH] MSVC complains if the perl headers are inside an 'extern C'
 block

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@465252 13f79535-47bb-0310-9956-ffa450edef68
---
 swig/perl/Transcoder/Transcoder.hpp          | 7 -------
 swig/perl/Transcoder/XMLExceptionHandler.hpp | 6 ------
 2 files changed, 13 deletions(-)

diff --git a/swig/perl/Transcoder/Transcoder.hpp b/swig/perl/Transcoder/Transcoder.hpp
index e6f242bff..a4ccca469 100644
--- a/swig/perl/Transcoder/Transcoder.hpp
+++ b/swig/perl/Transcoder/Transcoder.hpp
@@ -17,10 +17,6 @@
 #ifndef __TRANSCODER
 #define __TRANSCODER
 
-/* Needed on some windows machines---since MS plays funny
-   games with the header files under C++ */
-extern "C" {
-
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
@@ -29,9 +25,6 @@ extern "C" {
 #undef free
 #undef malloc
 
-}
-
-
 #include "xercesc/util/TransService.hpp"
 #include "xercesc/util/PlatformUtils.hpp"
 
diff --git a/swig/perl/Transcoder/XMLExceptionHandler.hpp b/swig/perl/Transcoder/XMLExceptionHandler.hpp
index dad830ba1..51a21bee1 100644
--- a/swig/perl/Transcoder/XMLExceptionHandler.hpp
+++ b/swig/perl/Transcoder/XMLExceptionHandler.hpp
@@ -17,10 +17,6 @@
 #ifndef __XMLEXCEPTIONHANDLER
 #define __XMLEXCEPTIONHANDLER
 
-/* Needed on some windows machines---since MS plays funny
-   games with the header files under C++ */
-extern "C" {
-
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
@@ -29,8 +25,6 @@ extern "C" {
 #undef free
 #undef malloc
 
-}
-
 #include "xercesc/util/ArrayIndexOutOfBoundsException.hpp"
 #include "xercesc/util/EmptyStackException.hpp"
 #include "xercesc/util/IllegalArgumentException.hpp"
-- 
GitLab