pre_nw.h revision 834bb31f533a475cb9ee0f079af10eba1f63f336
6de8046f8f7e07cd83895a528df25d977e502c76nd/* Copyright 2001-2004 The Apache Software Foundation
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd *
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * Licensed under the Apache License, Version 2.0 (the "License");
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * you may not use this file except in compliance with the License.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * You may obtain a copy of the License at
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd *
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * http://www.apache.org/licenses/LICENSE-2.0
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd *
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * Unless required by applicable law or agreed to in writing, software
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * distributed under the License is distributed on an "AS IS" BASIS,
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * See the License for the specific language governing permissions and
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * limitations under the License.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd */
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#ifndef __pre_nw__
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#define __pre_nw__
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
352a60e331c378f64b756b8dbef266527997e014bnicholes#include <stdint.h>
352a60e331c378f64b756b8dbef266527997e014bnicholes
352a60e331c378f64b756b8dbef266527997e014bnicholes#ifndef __GNUC__
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#pragma precompile_target "precomp.mch"
352a60e331c378f64b756b8dbef266527997e014bnicholes#endif
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
352a60e331c378f64b756b8dbef266527997e014bnicholes#define NETWARE
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#define N_PLAT_NLM
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes/* hint for MSL C++ that we're on NetWare platform */
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#define __NETWARE__
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes/* the FAR keyword has no meaning in a 32-bit environment
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes but is used in the SDK headers so we take it out */
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#define FAR
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#define far
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes/* no-op for Codewarrior C compiler; a functions are cdecl
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes by default */
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#define cdecl
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes/* if we have wchar_t enabled in C++, predefine this type to avoid
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes a conflict in Novell's header files */
352a60e331c378f64b756b8dbef266527997e014bnicholes#ifndef __GNUC__
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#if (__option(cplusplus) && __option(wchar_type))
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#define _WCHAR_T
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#endif
352a60e331c378f64b756b8dbef266527997e014bnicholes#endif
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes/* C9X defintion used by MSL C++ library */
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#define DECIMAL_DIG 17
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes/* some code may want to use the MS convention for long long */
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#ifndef __int64
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#define __int64 long long
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#endif
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
65f272685f3ca92e45841d95c2b5fa6219ad9b5cbnicholes/* Don't use the DBM rewrite map for mod_rewrite */
65f272685f3ca92e45841d95c2b5fa6219ad9b5cbnicholes#define NO_DBM_REWRITEMAP
65f272685f3ca92e45841d95c2b5fa6219ad9b5cbnicholes
65f272685f3ca92e45841d95c2b5fa6219ad9b5cbnicholes/* Allow MOD_AUTH_DBM to use APR */
65f272685f3ca92e45841d95c2b5fa6219ad9b5cbnicholes#define AP_AUTH_DBM_USE_APR
65f272685f3ca92e45841d95c2b5fa6219ad9b5cbnicholes
834bb31f533a475cb9ee0f079af10eba1f63f336bnicholes/* Restrict the number of nested includes */
834bb31f533a475cb9ee0f079af10eba1f63f336bnicholes#define AP_MAX_INCLUDE_DEPTH 48
834bb31f533a475cb9ee0f079af10eba1f63f336bnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes#endif
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes
e33833081e7cf59b50e76fec55fe582b3ed0361abnicholes