1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/stlport/errno.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,74 @@
1.4 +/*
1.5 + * Copyright (c) 1999
1.6 + * Boris Fomitchev
1.7 + *
1.8 + * This material is provided "as is", with absolutely no warranty expressed
1.9 + * or implied. Any use is at your own risk.
1.10 + *
1.11 + * Permission to use or copy this software for any purpose is hereby granted
1.12 + * without fee, provided the above notices are retained on all copies.
1.13 + * Permission to modify the code and to distribute modified code is granted,
1.14 + * provided the above notices are retained, and a notice that the code was
1.15 + * modified is included with the above copyright notice.
1.16 + *
1.17 + */
1.18 +
1.19 +#if !defined (_STLP_OUTERMOST_HEADER_ID)
1.20 +# define _STLP_OUTERMOST_HEADER_ID 0x205
1.21 +# include <stl/_prolog.h>
1.22 +#elif (_STLP_OUTERMOST_HEADER_ID == 0x205) && !defined (_STLP_DONT_POP_HEADER_ID)
1.23 +# define _STLP_DONT_POP_HEADER_ID
1.24 +#endif
1.25 +
1.26 +#ifdef _STLP_WCE
1.27 +// only show message when directly including this file in a non-library build
1.28 +# if !defined(__BUILDING_STLPORT) && (_STLP_OUTERMOST_HEADER_ID == 0x205)
1.29 +# pragma message("eMbedded Visual C++ 3 and .NET don't have a errno.h header; STLport won't include native errno.h here")
1.30 +# endif
1.31 +#else
1.32 +# ifndef errno
1.33 +/* We define the following macro first to guaranty the header reentrancy: */
1.34 +# define _STLP_NATIVE_ERRNO_H_INCLUDED
1.35 +# include _STLP_NATIVE_C_HEADER(errno.h)
1.36 +# endif /* errno */
1.37 +
1.38 +# if !defined (_STLP_NATIVE_ERRNO_H_INCLUDED)
1.39 +/* If errno has been defined before inclusion of native errno.h including it from STLport errno.h
1.40 + * becomes impossible because if:
1.41 + * #define errno foo
1.42 + * then
1.43 + * #include _STLP_NATIVE_C_HEADER(errno.h)
1.44 + * becomes:
1.45 + * #include _STLP_NATIVE_C_HEADER(foo.h)
1.46 + *
1.47 + * To fix this problem you have to find where this definition comes from and include errno.h before it.
1.48 + */
1.49 +# error errno has been defined before inclusion of errno.h header.
1.50 +# endif
1.51 +
1.52 +# ifdef __cplusplus
1.53 +# ifndef errno /* errno still not defined */
1.54 +_STLP_BEGIN_NAMESPACE
1.55 +# if !defined (__BORLANDC__)
1.56 +using ::errno;
1.57 +# else
1.58 +using _STLP_VENDOR_CSTD::errno;
1.59 +# endif
1.60 +_STLP_END_NAMESPACE
1.61 +# endif /* errno */
1.62 +# endif /* __cplusplus */
1.63 +
1.64 +#endif
1.65 +
1.66 +#if (_STLP_OUTERMOST_HEADER_ID == 0x205)
1.67 +# if ! defined (_STLP_DONT_POP_HEADER_ID)
1.68 +# include <stl/_epilog.h>
1.69 +# undef _STLP_OUTERMOST_HEADER_ID
1.70 +# endif
1.71 +# undef _STLP_DONT_POP_HEADER_ID
1.72 +#endif
1.73 +
1.74 +/* Local Variables:
1.75 + * mode:C++
1.76 + * End:
1.77 + */