Re: [bug-gnulib] include in a C++ program

2006-12-20 Thread Lorenzo Bettini
Yes, for the moment this is the only one. In case I need some more I'll send you an email. thanks a lot cheers Lorenzo Bruno Haible wrote: Lorenzo Bettini wrote: I thus included a possible patch. strdup.h is all you need? Ok, I commit this: -- +---

Re: [bug-gnulib] include in a C++ program

2006-12-19 Thread Bruno Haible
Lorenzo Bettini wrote: > I thus included a possible patch. strdup.h is all you need? Ok, I commit this: 2006-12-19 Bruno Haible <[EMAIL PROTECTED]> * lib/strdup.h [C++]: Wrap definitions in extern "C". Suggested by Lorenzo Bettini <[EMAIL PROTECTED]>. *** lib/strdup.h1

Re: [bug-gnulib] include in a C++ program

2006-12-19 Thread Lorenzo Bettini
Bruno Haible wrote: Lorenzo Bettini wrote: I tried it and got no problem, but as far as I understand this is not a proof, since #if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP && !defined strdup /* Duplicate S, returning an identical malloc'd string. */ extern char *strdup (const char *s); #

Re: [bug-gnulib] include in a C++ program

2006-12-12 Thread Bruno Haible
Lorenzo Bettini wrote: > I tried it and got no problem, but as far as I understand this is not a > proof, since > > #if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP && !defined strdup > /* Duplicate S, returning an identical malloc'd string. */ > extern char *strdup (const char *s); > #endif >

Re: [bug-gnulib] include in a C++ program

2006-12-11 Thread Lorenzo Bettini
Bruno Haible wrote: > Lorenzo Bettini wrote: >> I've just started using gnulib, and I have a doubt. >> I've imported strdup and I'm using it in a C++ program. >> >> Now should I import strdup.h in the C++ program simply like this >> >> #include "strdup.h" >> >> Or should I wrap it as follows? >> >>

Re: [bug-gnulib] include in a C++ program

2006-12-11 Thread Bruno Haible
Lorenzo Bettini wrote: > I've just started using gnulib, and I have a doubt. > I've imported strdup and I'm using it in a C++ program. > > Now should I import strdup.h in the C++ program simply like this > > #include "strdup.h" > > Or should I wrap it as follows? > > extern "C" { > #include "st