Giuseppe Scrivano wrote: > I am going to use gnulib in a C++ program. This is the first problem I > encountered.
> diff --git a/lib/nproc.h b/lib/nproc.h > index fe5b57e..4a8b4d4 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++ */ You are right, of course. I committed your patch for you. Bruno