aboutsummaryrefslogtreecommitdiff
path: root/src/include/regex/cdefs.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-09-21 06:31:13 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-09-21 06:31:13 +0000
commit7efc8ef1a181bae8e9e74a19dddc15a8cecfb8e9 (patch)
tree6f721e79c716cf222234b546c0645b65e5108839 /src/include/regex/cdefs.h
parentee420c049f09820f3292db6889e98d881001f504 (diff)
downloadpostgresql-7efc8ef1a181bae8e9e74a19dddc15a8cecfb8e9.tar.gz
postgresql-7efc8ef1a181bae8e9e74a19dddc15a8cecfb8e9.zip
|For starters, here's a small patch that removes a compiler warning in that
|regex stuff on Linux. | |-- |Bryan Henderson Phone 408-227-6803 |San Jose, California |
Diffstat (limited to 'src/include/regex/cdefs.h')
-rw-r--r--src/include/regex/cdefs.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/regex/cdefs.h b/src/include/regex/cdefs.h
index cdca2af164d..3a548f3ea15 100644
--- a/src/include/regex/cdefs.h
+++ b/src/include/regex/cdefs.h
@@ -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_
@@ -77,7 +77,14 @@
* 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