From: Bruno Haible <bruno@clisp.org>
Date: Fri, 31 Dec 2010 14:38:30 +0000 (+0100)
Subject: waitpid: Fix link error in C++ mode.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c01ebed5022fc49f67b29e334fdb6e3c7f49fc2;p=pspp

waitpid: Fix link error in C++ mode.

* lib/sys_wait.in.h: Remove extern "C" { ... } group.
---

diff --git a/ChangeLog b/ChangeLog
index 3176a03636..14cd98e046 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-31  Bruno Haible  <bruno@clisp.org>
+
+	waitpid: Fix link error in C++ mode.
+	* lib/sys_wait.in.h: Remove extern "C" { ... } group.
+
 2010-12-31  Bruno Haible  <bruno@clisp.org>
 
 	isnan: Use GCC built-ins when possible.
diff --git a/lib/sys_wait.in.h b/lib/sys_wait.in.h
index d7a412640d..03d22d6b01 100644
--- a/lib/sys_wait.in.h
+++ b/lib/sys_wait.in.h
@@ -108,9 +108,6 @@
 
 #endif
 
-#ifdef __cplusplus
-extern "C" {
-#endif
 
 /* Declarations of functions.  */
 
@@ -128,9 +125,6 @@ _GL_WARN_ON_USE (waitpid, "waitpid is unportable - "
 # endif
 #endif
 
-#ifdef __cplusplus
-}
-#endif
 
 #endif /* _GL_SYS_WAIT_H */
 #endif /* _GL_SYS_WAIT_H */