Menu

#247 Selecting _STLP_USE_STDIO_IO does not compile on windows

5.2
open
nobody
5
2011-03-04
2011-03-04
stsoe
No

STLPort.5.2.1: stlport/stl/config/host.h allows you to select _STLP_USE_STDIO_IO but doing so causes compilation errors on windows, because stlport/stl/config/_windows.h unconditionally defines _STLP_USE_WIN32_IO. Either the #define of _STLP_USE_WIN32_IO in _windows.h should be guarded by !defined(_STLP_USE_STDIO_IO) or it should #undef _STLP_USE_STDIO_IO if that is not to be allowed on windows.

I simply guarded the #define in _windows.h like this:

#if defined(_STLP_WIN32) && !defined(_STLP_USE_STDIO_IO)
# define _STLP_USE_WIN32_IO /* CreateFile/ReadFile/WriteFile */
#endif

Is it a bad idea to use STDIO_IO on windows? I am not exactly clear of the (dis)advantage of STDIO_IO versus WIN32_IO on the windows platform?

Thanks,
Soren Soe

Discussion


Log in to post a comment.