wxWidgets/include
Julian Smart c7808714c9 Applied patch [ 587454 ] CW-related wx/wxchar.h fix
This fixes the problem in include/wx/wxchar.h with
including <wchar.h> for CW reported by Andreas
Simanowski.

The current version does not work with CW Win32 builds.

The fix suggested by Andreas is incorrect, because it
will break the wxMAC CW builds.

The purpose of conditionals starting at line 77 is to
correctly handle the various compilers. The fundamental
problem with the existing code is that it begins by
conditioning on __WIN32__. This is wrong, and makes
it hard to handle compilers that work on more than one
OS (such as CW).

Instead the conditionals should be done purely on
compilers. Each compiler can then set things
appropriately. If a particular compiler works on more
than one OS but has different needs on each OS, then
this can be handled within the code for that compiler.

The attached patch removes the top level conditional on
__WIN32__ and restructures the remainder as a series
of conditionals on individual compilers.

Igor Mikolic-Torreira
igormt@alumni.caltech.edu


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 09:35:25 +00:00
..
wx Applied patch [ 587454 ] CW-related wx/wxchar.h fix 2002-08-08 09:35:25 +00:00
.cvsignore
wx_cw_d.pch applied patch to build wxMSW with CW7 (patch 550445) 2002-05-09 22:34:44 +00:00
wx_cw_d.pch++ applied patch to build wxMSW with CW7 (patch 550445) 2002-05-09 22:34:44 +00:00
wx_cw.pch applied patch to build wxMSW with CW7 (patch 550445) 2002-05-09 22:34:44 +00:00
wx_cw.pch++ applied patch to build wxMSW with CW7 (patch 550445) 2002-05-09 22:34:44 +00:00
wx_cwc_d.pch
wx_cwc_d.pch++
wx_cwc.pch
wx_cwc.pch++
wx_cwu_d.pch
wx_cwu_d.pch++
wx_pb.h prefix include file for Project Builder project 2002-07-25 21:47:25 +00:00
wxshlb_cw_d.pch
wxshlb_cw_d.pch++
wxshlb_cw.pch
wxshlb_cw.pch++
wxshlb_cwc_d.pch
wxshlb_cwc_d.pch++
wxshlb_cwc.pch
wxshlb_cwc.pch++
wxshlba_cw_d.pch
wxshlba_cw_d.pch++
wxshlba_cw.pch
wxshlba_cw.pch++
wxshlba_cwc_d.pch
wxshlba_cwc_d.pch++
wxshlba_cwc.pch
wxshlba_cwc.pch++