bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] issue with getopt


From: Bruno Haible
Subject: Re: [bug-gnulib] issue with getopt
Date: Wed, 20 Dec 2006 20:32:09 +0100
User-agent: KMail/1.9.1

Lorenzo Bettini wrote:
> gnulib-tool says:
> 
> You may need to add #include directives for the following .h files.
>    #include <getopt.h>
> 
> shouldn't it be
> 
>    #include "getopt.h"
> 
> ?

Given that the source and build directories are searched by the compiler
(due to the many "-I." flags), it boils down to a matter of style.

We write <stdbool.h> since <stdbool.h> is a standard header.

We write <getopt.h> since glibc and other systems have it.

Some people write <error.h> since glibc has it; some people write "error.h"
since only glibc has it.

You see, there's no clear borderline between <> and "".

Bruno




reply via email to

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