From cea50d697cd3410c88243fccbdbb4488b13f9e52 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 19 Oct 2009 09:30:13 +0200 Subject: [PATCH] Add extern "C" block for C++. --- ChangeLog | 4 ++++ lib/nproc.h | 9 +++++++++ 2 files changed, 13 insertions(+) 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++ */ -- 2.11.0