sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 1999
|
sl@0
|
3 |
* Boris Fomitchev
|
sl@0
|
4 |
*
|
sl@0
|
5 |
* This material is provided "as is", with absolutely no warranty expressed
|
sl@0
|
6 |
* or implied. Any use is at your own risk.
|
sl@0
|
7 |
*
|
sl@0
|
8 |
* Permission to use or copy this software for any purpose is hereby granted
|
sl@0
|
9 |
* without fee, provided the above notices are retained on all copies.
|
sl@0
|
10 |
* Permission to modify the code and to distribute modified code is granted,
|
sl@0
|
11 |
* provided the above notices are retained, and a notice that the code was
|
sl@0
|
12 |
* modified is included with the above copyright notice.
|
sl@0
|
13 |
*
|
sl@0
|
14 |
*/
|
sl@0
|
15 |
|
sl@0
|
16 |
#if !defined (_STLP_OUTERMOST_HEADER_ID)
|
sl@0
|
17 |
# define _STLP_OUTERMOST_HEADER_ID 0x205
|
sl@0
|
18 |
# include <stl/_prolog.h>
|
sl@0
|
19 |
#elif (_STLP_OUTERMOST_HEADER_ID == 0x205) && !defined (_STLP_DONT_POP_HEADER_ID)
|
sl@0
|
20 |
# define _STLP_DONT_POP_HEADER_ID
|
sl@0
|
21 |
#endif
|
sl@0
|
22 |
|
sl@0
|
23 |
#ifdef _STLP_WCE
|
sl@0
|
24 |
// only show message when directly including this file in a non-library build
|
sl@0
|
25 |
# if !defined(__BUILDING_STLPORT) && (_STLP_OUTERMOST_HEADER_ID == 0x205)
|
sl@0
|
26 |
# 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
|
27 |
# endif
|
sl@0
|
28 |
#else
|
sl@0
|
29 |
# ifndef errno
|
sl@0
|
30 |
/* We define the following macro first to guaranty the header reentrancy: */
|
sl@0
|
31 |
# define _STLP_NATIVE_ERRNO_H_INCLUDED
|
sl@0
|
32 |
# include _STLP_NATIVE_C_HEADER(errno.h)
|
sl@0
|
33 |
# endif /* errno */
|
sl@0
|
34 |
|
sl@0
|
35 |
# if !defined (_STLP_NATIVE_ERRNO_H_INCLUDED)
|
sl@0
|
36 |
/* If errno has been defined before inclusion of native errno.h including it from STLport errno.h
|
sl@0
|
37 |
* becomes impossible because if:
|
sl@0
|
38 |
* #define errno foo
|
sl@0
|
39 |
* then
|
sl@0
|
40 |
* #include _STLP_NATIVE_C_HEADER(errno.h)
|
sl@0
|
41 |
* becomes:
|
sl@0
|
42 |
* #include _STLP_NATIVE_C_HEADER(foo.h)
|
sl@0
|
43 |
*
|
sl@0
|
44 |
* To fix this problem you have to find where this definition comes from and include errno.h before it.
|
sl@0
|
45 |
*/
|
sl@0
|
46 |
# error errno has been defined before inclusion of errno.h header.
|
sl@0
|
47 |
# endif
|
sl@0
|
48 |
|
sl@0
|
49 |
# ifdef __cplusplus
|
sl@0
|
50 |
# ifndef errno /* errno still not defined */
|
sl@0
|
51 |
_STLP_BEGIN_NAMESPACE
|
sl@0
|
52 |
# if !defined (__BORLANDC__)
|
sl@0
|
53 |
using ::errno;
|
sl@0
|
54 |
# else
|
sl@0
|
55 |
using _STLP_VENDOR_CSTD::errno;
|
sl@0
|
56 |
# endif
|
sl@0
|
57 |
_STLP_END_NAMESPACE
|
sl@0
|
58 |
# endif /* errno */
|
sl@0
|
59 |
# endif /* __cplusplus */
|
sl@0
|
60 |
|
sl@0
|
61 |
#endif
|
sl@0
|
62 |
|
sl@0
|
63 |
#if (_STLP_OUTERMOST_HEADER_ID == 0x205)
|
sl@0
|
64 |
# if ! defined (_STLP_DONT_POP_HEADER_ID)
|
sl@0
|
65 |
# include <stl/_epilog.h>
|
sl@0
|
66 |
# undef _STLP_OUTERMOST_HEADER_ID
|
sl@0
|
67 |
# endif
|
sl@0
|
68 |
# undef _STLP_DONT_POP_HEADER_ID
|
sl@0
|
69 |
#endif
|
sl@0
|
70 |
|
sl@0
|
71 |
/* Local Variables:
|
sl@0
|
72 |
* mode:C++
|
sl@0
|
73 |
* End:
|
sl@0
|
74 |
*/
|