bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib and C++


From: Bruno Haible
Subject: Re: gnulib and C++
Date: Sat, 20 Feb 2010 02:55:04 +0100
User-agent: KMail/1.9.9

John W. Eaton wrote:
> Maybe I'm missing something, but what happens if @GNULIB_OPEN@ is 0?
> It doesn't look like we get the symbol inside the gnulib namespace in
> that case.

Yes. This is intentional. When @GNULIB_OPEN@ expands to 0, it means that
the programmer has not asked for the function 'open' to be corrected by
gnulib.

Gnulib is, by design, an adaptable set of functionality. It is not all
of POSIX. It is the subset of POSIX that you ask for.

The reference to gnulib::open will fail in this case, telling the programmer
that he needs to request the gnulib module 'open'.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]