From: Giuseppe Scrivano Date: Mon, 19 Oct 2009 07:30:13 +0000 (+0200) Subject: Add extern "C" block for C++. X-Git-Tag: v0.1~5300 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=cea50d697cd3410c88243fccbdbb4488b13f9e52;p=gnulib.git Add extern "C" block for C++. --- diff --git a/ChangeLog b/ChangeLog index 0500aaf8c..8eade8f80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-10-19 Giuseppe Scrivano + + * lib/nproc.h: Add extern "C" block for C++. + 2009-10-18 Reuben Thomas Bruno Haible diff --git a/lib/nproc.h b/lib/nproc.h index fe5b57e95..e9d65b951 100644 --- 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++ */