httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk.vanGulik" <Dirk.vanGu...@jrc.it>
Subject Re: Sun's CC barfs on Apache 1.0
Date Thu, 23 Nov 1995 08:05:59 GMT

 > As I posted before, the Sun preprocessor does *not* like line 652 in 
> mod_include.c:
> 
>   #if defined(BSD) && BSD > 199305
> 
>   "mod_include.c", line 652:  (in preprocessor if): syntax error 
>   *** Error code 2 
>   make: Fatal error: Command failed for target `mod_include.o'
> 

The cpp on this sun box (solaris 5.4)

	ucbcc: SC3.0 15 Dec 1993
	ld: Software Generation Utilities (SGU) SunOS/ELF (LK-1.4 (S/I))
	cpp: Software Generation Utilities (SGU) SunOS/SVR4 

will eat it fine, and this construct below works on the older boxes
as well. 

	#ifdef BSD
	#if BSD > 199305
	..
	Blah..
	..
	#endif
	#endif

(cause if BSD is not defined and it barfs on 

	#if defined() &&  > 199305

is not a valid exprt. Actually on some boxes (cray) this works also:

	#if defined(BSD) && ((1+BSD+1) > (199305+2))

ran into this one some time ago.)

Dw.


Mime
View raw message