You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/04/05 22:28:18 UTC
DO NOT REPLY [Bug 7777] New: -
XMLCh typedef should be conditional under MSVC 7
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7777>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7777
XMLCh typedef should be conditional under MSVC 7
Summary: XMLCh typedef should be conditional under MSVC 7
Product: Xerces-C++
Version: 1.7.0
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Miscellaneous
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: jsp@pkc.com
Some time back, Tom Walpole made the following observation (in
http://marc.theaimsgroup.com/?l=xerces-c-dev&m=101422550027878&w=2):
VC7 will treat wchar_t as a seperate type if the compile switch 'Zc:wchar_t'
is used. It also defines the symbol _WCHAR_T_DEFINED if the switch is used.
He also suggested changing the XMLCh typedef in VCPPDEFS.CPP from:
typedef wchar_t XMLCh;
to
#ifdef _WCHAR_T_DEFINED
typedef wchar_t XMLCh;
#else
typedef unsigned short XMLCh;
#endif
David Bertoni seconded the notion, and it makes sense to me. Lest it be
forgotten, here's a bug report.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org