Apache2
pre_nw.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
25 #ifndef __pre_nw__
26 #define __pre_nw__
27 
28 #include <stdint.h>
29 
30 #ifndef __GNUC__
31 #pragma precompile_target "precomp.mch"
32 #endif
33 
34 #define NETWARE
35 
36 #define N_PLAT_NLM
37 
38 /* hint for MSL C++ that we're on NetWare platform */
39 #define __NETWARE__
40 
41 /* the FAR keyword has no meaning in a 32-bit environment
42  but is used in the SDK headers so we take it out */
43 #define FAR
44 #define far
45 
46 /* no-op for Codewarrior C compiler; a functions are cdecl
47  by default */
48 #define cdecl
49 
50 /* if we have wchar_t enabled in C++, predefine this type to avoid
51  a conflict in Novell's header files */
52 #ifndef __GNUC__
53 #if (__option(cplusplus) && __option(wchar_type))
54 #define _WCHAR_T
55 #endif
56 #endif
57 
58 /* C9X definition used by MSL C++ library */
59 #define DECIMAL_DIG 17
60 
61 /* some code may want to use the MS convention for long long */
62 #ifndef __int64
63 #define __int64 long long
64 #endif
65 
66 /* Restrict the number of nested includes */
67 #define AP_MAX_INCLUDE_DEPTH 48
68 
69 #endif