#29 evc3: _windows.h include errors

closed
5
2006-04-07
2006-03-27
No

I tried to compile STLport 5.1 HEAD with evc3 and I
found a problem (among others). The _windows.h header
included in _system.h itself includes <windef.h>, and
the header itself includes <ctype.h> and <string.h>.
Instead of including the files SDK, the STLport files
are included, resulting in errors while using the
define _STLP_NATIVE_C_HEADER that is only defined later
in the include hierarchy.

The following patch fixes this by including native SDK
headers in stlport/ctype.h and stlport/string.h when
including from windef.h. The macro used to detect this
is named _STLP_EVC3_NO_STLP_INCLUDES_IN_WINDOWS_H, but
the name can of course be discussed or renamed.

Discussion

  • Francois Dumont

    Francois Dumont - 2006-04-04
    • assigned_to: nobody --> dums
    • status: open --> pending
     
  • Francois Dumont

    Francois Dumont - 2006-04-04

    Logged In: YES
    user_id=1096600

    Patch hasn't been applied in state. I prefer to make a
    independant header stlport/stl/config/_native_headers.h
    containing all macros necessary to access native headers.
    This file can be optionaly included by compiler/platform
    configuration file if they need it. Otherwise, behavior is
    not modified, _native_headers.h is included in
    stlport/stl/config/features.h.

     
  • Francois Dumont

    Francois Dumont - 2006-04-07
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks