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 "Alberto Massari (JIRA)" <xe...@xml.apache.org> on 2005/01/26 15:52:17 UTC

[jira] Resolved: (XERCESC-413) XMLCh typedef should be conditional under MSVC 7

     [ http://issues.apache.org/jira/browse/XERCESC-413?page=history ]
     
Alberto Massari resolved XERCESC-413:
-------------------------------------

     Assign To:     (was: Xerces-C Developers Mailing List)
    Resolution: Fixed

Fix is in CVS. Please verify.

Alberto

> XMLCh typedef should be conditional under MSVC 7
> ------------------------------------------------
>
>          Key: XERCESC-413
>          URL: http://issues.apache.org/jira/browse/XERCESC-413
>      Project: Xerces-C++
>         Type: Bug
>   Components: Miscellaneous
>     Versions: 1.7.0
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Jesse Pelton

>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org