On Fri, 18 Oct 2002 01:25:49 +0200 (Romance Daylight Time) Vadim Zeitlin 
<[EMAIL PROTECTED]> wrote:

VZ> NB> Maybe include should be changed to
VZ> NB> #include <iostream> ? Won't there be problems with older g++ compilers then?
VZ> 
VZ>  There will be. So we need a configure test for USE_IOSTREAMH (see
VZ> Mconfig.h).

There is already wxUSE_IOSTREAMH in wx. Can we use it? I guess so, because
if I change #if wxUSE_IOSTREAMH to #ifdef wxUSE_IOSTREAMH below, I get
warnings about deprecated headers, it means wxUSE_IOSTREAMH is defined
and <iostream.h> and <fstream.h> are included then.

I changed Mconfig.h to look like

#if wxUSE_IOSTREAMH
    #include <iostream.h>
    #include <fstream.h>
#else
    #include <iostream>
    #include <fstream>
    using namespace std;
#endif

and then compilation succeeds without warnings.

Regards,
Nerijus



-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to