sl@0: /* sl@0: * Copyright (c) 1999 sl@0: * Boris Fomitchev sl@0: * sl@0: * This material is provided "as is", with absolutely no warranty expressed sl@0: * or implied. Any use is at your own risk. sl@0: * sl@0: * Permission to use or copy this software for any purpose is hereby granted sl@0: * without fee, provided the above notices are retained on all copies. sl@0: * Permission to modify the code and to distribute modified code is granted, sl@0: * provided the above notices are retained, and a notice that the code was sl@0: * modified is included with the above copyright notice. sl@0: * sl@0: */ sl@0: sl@0: #if !defined (_STLP_OUTERMOST_HEADER_ID) sl@0: # define _STLP_OUTERMOST_HEADER_ID 0x205 sl@0: # include sl@0: #elif (_STLP_OUTERMOST_HEADER_ID == 0x205) && !defined (_STLP_DONT_POP_HEADER_ID) sl@0: # define _STLP_DONT_POP_HEADER_ID sl@0: #endif sl@0: sl@0: #ifdef _STLP_WCE sl@0: // only show message when directly including this file in a non-library build sl@0: # if !defined(__BUILDING_STLPORT) && (_STLP_OUTERMOST_HEADER_ID == 0x205) sl@0: # pragma message("eMbedded Visual C++ 3 and .NET don't have a errno.h header; STLport won't include native errno.h here") sl@0: # endif sl@0: #else sl@0: # ifndef errno sl@0: /* We define the following macro first to guaranty the header reentrancy: */ sl@0: # define _STLP_NATIVE_ERRNO_H_INCLUDED sl@0: # include _STLP_NATIVE_C_HEADER(errno.h) sl@0: # endif /* errno */ sl@0: sl@0: # if !defined (_STLP_NATIVE_ERRNO_H_INCLUDED) sl@0: /* If errno has been defined before inclusion of native errno.h including it from STLport errno.h sl@0: * becomes impossible because if: sl@0: * #define errno foo sl@0: * then sl@0: * #include _STLP_NATIVE_C_HEADER(errno.h) sl@0: * becomes: sl@0: * #include _STLP_NATIVE_C_HEADER(foo.h) sl@0: * sl@0: * To fix this problem you have to find where this definition comes from and include errno.h before it. sl@0: */ sl@0: # error errno has been defined before inclusion of errno.h header. sl@0: # endif sl@0: sl@0: # ifdef __cplusplus sl@0: # ifndef errno /* errno still not defined */ sl@0: _STLP_BEGIN_NAMESPACE sl@0: # if !defined (__BORLANDC__) sl@0: using ::errno; sl@0: # else sl@0: using _STLP_VENDOR_CSTD::errno; sl@0: # endif sl@0: _STLP_END_NAMESPACE sl@0: # endif /* errno */ sl@0: # endif /* __cplusplus */ sl@0: sl@0: #endif sl@0: sl@0: #if (_STLP_OUTERMOST_HEADER_ID == 0x205) sl@0: # if ! defined (_STLP_DONT_POP_HEADER_ID) sl@0: # include sl@0: # undef _STLP_OUTERMOST_HEADER_ID sl@0: # endif sl@0: # undef _STLP_DONT_POP_HEADER_ID sl@0: #endif sl@0: sl@0: /* Local Variables: sl@0: * mode:C++ sl@0: * End: sl@0: */