You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by dg...@hyperreal.org on 1998/01/21 22:59:30 UTC
cvs commit: apachen/src/main conf.h
dgaudet 98/01/21 13:59:30
Modified: src CHANGES
src/main conf.h
Log:
NeXT cc pretends to be gcc but it really isn't. Work around it's inaneness.
PR: 1613
Revision Changes Path
1.575 +5 -1 apachen/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /export/home/cvs/apachen/src/CHANGES,v
retrieving revision 1.574
retrieving revision 1.575
diff -u -r1.574 -r1.575
--- CHANGES 1998/01/21 21:54:26 1.574
+++ CHANGES 1998/01/21 21:59:27 1.575
@@ -1,7 +1,11 @@
Changes with Apache 1.3b4
+ *) The NeXT cc (which is gcc hacked up) doesn't appear to support some
+ gcc functionality. Work around it.
+ [Keith Severson <ke...@sssd.navy.mil>] PR#1613
+
*) Some linkers complain when .o files contain no functions.
- [Dean Gaudet] PR#1614
+ [Keith Severson <ke...@sssd.navy.mil>] PR#1614
*) Some const declarations in mod_imap.c that were added for debugging
purposes caused some compilers heartburn without adding any
1.169 +7 -1 apachen/src/main/conf.h
Index: conf.h
===================================================================
RCS file: /export/home/cvs/apachen/src/main/conf.h,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -r1.168 -r1.169
--- conf.h 1998/01/21 19:17:36 1.168
+++ conf.h 1998/01/21 21:59:29 1.169
@@ -730,8 +730,14 @@
* GNUC attributes (such as to get -Wall warnings for printf-like
* functions). Only do this in gcc 2.7 or later ... it may work
* on earlier stuff, but why chance it.
+ *
+ * We've since discovered that the gcc shipped with NeXT systems
+ * as "cc" is completely broken. It claims to be __GNUC__ and so
+ * on, but it doesn't implement half of the things that __GNUC__
+ * means. In particular it's missing inline and the __attribute__
+ * stuff. So we hack around it. PR#1613. -djg
*/
-#if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 7
+#if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 7 || defined(NEXT)
#define ap_inline
#define __attribute__(__x)
#else