Skip to content

Commit 7efc8ef

Browse files
committed
|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 |
1 parent ee420c0 commit 7efc8ef

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/include/regex/cdefs.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
/*
5757
* @(#)cdefs.h 8.1 (Berkeley) 6/2/93
58-
* $Id: cdefs.h,v 1.1 1996/09/20 05:29:23 scrappy Exp $
58+
* $Id: cdefs.h,v 1.2 1996/09/21 06:31:13 scrappy Exp $
5959
*/
6060

6161
#ifndef _CDEFS_H_
@@ -77,7 +77,14 @@
7777
* strings produced by the __STRING macro, but this only works with ANSI C.
7878
*/
7979
#if defined(__STDC__) || defined(__cplusplus)
80+
/*
81+
* Some headers in the Linux C library define __P the same as here,
82+
* but with different argument variable name. This causes a compiler
83+
* warning! So we avoid the redefinition.
84+
*/
85+
#if !defined(__P)
8086
#define __P(protos) protos /* full-blown ANSI C */
87+
#endif
8188
#define __CONCAT(x,y) x ## y
8289
#define __STRING(x) #x
8390

0 commit comments

Comments
 (0)