You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2005/01/26 15:48:14 UTC
cvs commit: xml-xerces/c/src/xercesc/util/Compilers VCPPDefs.hpp
amassari 2005/01/26 06:48:14
Modified: c/src/xercesc/util/Compilers VCPPDefs.hpp
Log:
If the option /Zc:wchar_t is specified, map XMLCh to wchar_t, or trying to use wide-char Windows API will generate compiler errors (jira# 413)
Revision Changes Path
1.12 +7 -0 xml-xerces/c/src/xercesc/util/Compilers/VCPPDefs.hpp
Index: VCPPDefs.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Compilers/VCPPDefs.hpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- VCPPDefs.hpp 15 Nov 2004 13:30:40 -0000 1.11
+++ VCPPDefs.hpp 26 Jan 2005 14:48:14 -0000 1.12
@@ -16,6 +16,9 @@
/*
* $Log$
+ * Revision 1.12 2005/01/26 14:48:14 amassari
+ * If the option /Zc:wchar_t is specified, map XMLCh to wchar_t, or trying to use wide-char Windows API will generate compiler errors (jira# 413)
+ *
* Revision 1.11 2004/11/15 13:30:40 amassari
* Add build target for VC7.1 to create a static library
*
@@ -146,7 +149,11 @@
// ---------------------------------------------------------------------------
// Define our version of the XML character
// ---------------------------------------------------------------------------
+#ifdef _NATIVE_WCHAR_T_DEFINED
+typedef wchar_t XMLCh;
+#else
typedef unsigned short XMLCh;
+#endif
// ---------------------------------------------------------------------------
// Define unsigned 16 and 32 bits integers
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org