]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
|For starters, here's a small patch that removes a compiler warning in that
authorMarc G. Fournier <scrappy@hub.org>
Sat, 21 Sep 1996 06:31:13 +0000 (06:31 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sat, 21 Sep 1996 06:31:13 +0000 (06:31 +0000)
|regex stuff on Linux.
|
|--
|Bryan Henderson                                    Phone 408-227-6803
|San Jose, California
|

src/include/regex/cdefs.h

index cdca2af164d545a5d8e640f515ecac312719cb0e..3a548f3ea153a183623542e44c89699e7a882da1 100644 (file)
@@ -55,7 +55,7 @@
 
 /*
  *     @(#)cdefs.h     8.1 (Berkeley) 6/2/93
- *     $Id: cdefs.h,v 1.1 1996/09/20 05:29:23 scrappy Exp $
+ *     $Id: cdefs.h,v 1.2 1996/09/21 06:31:13 scrappy Exp $
  */
 
 #ifndef        _CDEFS_H_
  * strings produced by the __STRING macro, but this only works with ANSI C.
  */
 #if defined(__STDC__) || defined(__cplusplus)
+/* 
+ * Some headers in the Linux C library define __P the same as here,
+ * but with different argument variable name.  This causes a compiler
+ * warning!  So we avoid the redefinition.
+ */
+#if !defined(__P)
 #define        __P(protos)     protos          /* full-blown ANSI C */
+#endif
 #define        __CONCAT(x,y)   x ## y
 #define        __STRING(x)     #x