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.
Log in to post a comment.