svn commit: r1165494 - /xalan/c/trunk/src/xalanc/Include/PlatformDefinitions.hpp

[email protected] Tue, 06 Sep 2011 03:47:47 -0000
Newsgroups gmane.text.xml.xalan.cvs
Message-ID <[email protected]>
Author: shathaway
Date: Tue Sep  6 03:47:47 2011
New Revision: 1165494

URL: http://svn.apache.org/viewvc?rev=1165494&view=rev
Log:
JIRA [XALANC-708] ensure that XMLCh is defined when using 'C' language API interfaces.

Modified:
    xalan/c/trunk/src/xalanc/Include/PlatformDefinitions.hpp

Modified: xalan/c/trunk/src/xalanc/Include/PlatformDefinitions.hpp
URL: http://svn.apache.org/viewvc/xalan/c/trunk/src/xalanc/Include/PlatformDefinitions.hpp?rev=1165494&r1=1165493&r2=1165494&view=diff
==============================================================================
--- xalan/c/trunk/src/xalanc/Include/PlatformDefinitions.hpp (original)
+++ xalan/c/trunk/src/xalanc/Include/PlatformDefinitions.hpp Tue Sep  6 03:47:47 2011
@@ -15,11 +15,16 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #if !defined(PLATFORMDEFINITIONS_HEADER_GUARD_1357924680)
 #define PLATFORMDEFINITIONS_HEADER_GUARD_1357924680
 
 #if defined(__cplusplus)
-#include "xercesc/util/XercesDefs.hpp"
+# include "xercesc/util/XercesDefs.hpp"
+#else
+/* Include xercesc autoconf to define XMLCh when using a 'C' compiler. */
+# include "xercesc/util/Xerces_autoconf_config.hpp"
+# include "xercesc/util/XercesVersion.hpp"
 #endif
 
 #if defined(_MSC_VER)