httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Nicholes" <BNICHO...@novell.com>
Subject Re: cvs commit: httpd-2.0/os/netware pre_nw.h modules.c Apache.def
Date Wed, 17 Oct 2001 14:44:22 GMT
The reason why these are in a separate .h file is a compiler issue.  If the Metrowerk compiler
worked like every other compiler, you would be correct.  The fact is that is doesn't which
can and has been very frustrating. :(    pre_nw.h is not a file that is #include'd in any
source file.  It is a file that is automatically included by the compiler itself.  Hopefully,
someday we will actually build this product using a real compiler. ;-)  

Brad

>>> wrowe@covalent.net Tuesday, October 16, 2001 6:33:57 PM >>>
> bnicholes    01/10/16 16:25:46
> 
>   Added:       os/netware pre_nw.h modules.c Apache.def
>   Log:
>   OS specific file for NetWare

Brad... these seem to be the usual compiler munging... I expect though
they would be better placed in apr.hnw where they can do all apr-based
applications some good?  We expect apr.h to do all the compiler
and platform munging for us, so httpd doesn't have to :)

Of course, there are still a very few legitimate uses for the os/ directory,
but they are shrinking very quickly.


>   Index: pre_nw.h
>   ===================================================================
>   #ifndef __pre_nw__
>   #define __pre_nw__
>   
>   #pragma precompile_target "precomp.mch"
>   #define NETWARE
>   
>   
>   #define N_PLAT_NLM
>   
>   /* hint for MSL C++ that we're on NetWare platform */
>   #define __NETWARE__
>   
>   /* the FAR keyword has no meaning in a 32-bit environment 
>      but is used in the SDK headers so we take it out */
>   #define FAR
>   #define far
>   
>   /* no-op for Codewarrior C compiler; a functions are cdecl 
>      by default */
>   #define cdecl
>   
>   /* if we have wchar_t enabled in C++, predefine this type to avoid
>      a conflict in Novell's header files */
>   #if (__option(cplusplus) && __option(wchar_type))
>   #define _WCHAR_T
>   #endif
>   
>   /* C9X defintion used by MSL C++ library */
>   #define DECIMAL_DIG 17
>   
>   /* define long long typedefs for Watcom compatiblity */
>   typedef long long int64_t;
>   typedef unsigned long long uint64_t;
>   
>   /* some code may want to use the MS convention for long long */
>   #ifndef __int64
>   #define __int64 long long
>   #endif
>   
>   #endif




Mime
View raw message