From: hno <> Date: Sun, 10 Nov 2002 09:04:39 +0000 (+0000) Subject: GNUregex.h is a C header file. Needs to be wrapped in extern "C" when X-Git-Tag: SQUID_3_0_PRE1~542 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccdf57eb7a1946b57c6495f69ed1752859383bc0;p=thirdparty%2Fsquid.git GNUregex.h is a C header file. Needs to be wrapped in extern "C" when compiling C++ code. --- diff --git a/src/squid.h b/src/squid.h index 92ea8f5a4b..a0c6b399e5 100644 --- a/src/squid.h +++ b/src/squid.h @@ -1,6 +1,6 @@ /* - * $Id: squid.h,v 1.226 2002/10/07 13:55:37 robertc Exp $ + * $Id: squid.h,v 1.227 2002/11/10 02:04:39 hno Exp $ * * AUTHOR: Duane Wessels * @@ -305,7 +305,13 @@ struct rusage { #endif #ifdef USE_GNUREGEX +#ifdef __cplusplus +extern "C" { +#endif #include "GNUregex.h" +#ifdef __cplusplus +} +#endif #elif HAVE_REGEX_H #include #endif