On MSVC 8.0 (Visual Studio 2005), compilation in debug mode fails with
stlport/errno.h(55) : fatal error C1189: #error : errno has been defined before inclusion of errno.h header.
This is due to inclusion of native cstddef from stlport/stl/_cstdef.h
A fix that I found is to preface this inclusion withe the same fix as done in stlport/stddef.h
#if defined (_MSC_VER) || defined (__DMC__)
/* Native stddef.h contains errno macro definition making inclusion of native
* errno.h in STLport errno.h impossible. We are then forced to include errno.h
# include "errno.h"
Please can you verify that this is the optimal way to fix it.
Log in to post a comment.