projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7f4cd9
)
Add extern "C" block for C++.
author
Giuseppe Scrivano
<gscrivano@gnu.org>
Mon, 19 Oct 2009 07:30:13 +0000
(09:30 +0200)
committer
Bruno Haible
<bruno@clisp.org>
Mon, 19 Oct 2009 07:30:13 +0000
(09:30 +0200)
ChangeLog
patch
|
blob
|
history
lib/nproc.h
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
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>
diff --git
a/lib/nproc.h
b/lib/nproc.h
index
fe5b57e
..
e9d65b9
100644
(file)
--- a/
lib/nproc.h
+++ b/
lib/nproc.h
@@
-18,4
+18,13
@@
/* 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++ */