Bruno Haible wrote:
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 "".
I see, but are <> ensuring that the version of gnulib is used (even if
getopt.h is available in the system)?
Lorenzo
--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| PhD in Computer Science, DSI, Univ. di Firenze |
| Florence - Italy (GNU/Linux User # 158233) |
| http://www.lorenzobettini.it |
| http://tronprog.blogspot.com BLOG |
| http://www.purplesucker.com Deep Purple Cover Band |
| http://www.gnu.org/software/src-highlite |
| http://www.gnu.org/software/gengetopt |
| http://www.gnu.org/software/gengen |
| http://doublecpp.sourceforge.net |
+-----------------------------------------------------+