Add extern "C" block for C++.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 19 Oct 2009 07:30:13 +0000 (09:30 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 19 Oct 2009 07:30:13 +0000 (09:30 +0200)
ChangeLog
lib/nproc.h

index 0500aaf..8eade8f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       * lib/nproc.h: Add extern "C" block for C++.
+
 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
             Bruno Haible  <bruno@clisp.org>
 
index fe5b57e..e9d65b9 100644 (file)
 
 /* Written by Glen Lenker.  */
 
+/* Allow the use in C++ code.  */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 unsigned long int num_processors (void);
+
+#ifdef __cplusplus
+}
+#endif /* C++ */