]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
GNUregex.h is a C header file. Needs to be wrapped in extern "C" when
authorhno <>
Sun, 10 Nov 2002 09:04:39 +0000 (09:04 +0000)
committerhno <>
Sun, 10 Nov 2002 09:04:39 +0000 (09:04 +0000)
compiling C++ code.

src/squid.h

index 92ea8f5a4b4c84448df42b229acc42b561016997..a0c6b399e50986405ad4d7d000fbce1a685ed454 100644 (file)
@@ -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 <regex.h>
 #endif