[Top][All Lists]

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

Re: [Bug-gnulib] config.h

From: Paul Eggert
Subject: Re: [Bug-gnulib] config.h
Date: Thu, 01 Jul 2004 10:47:48 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> #ifdef HAVE_CONFIG_H
> # ifndef CONFIG_H
> #  define CONFIG_H <config.h>
> # endif
> #  include CONFIG_H
> #endif
> But I wonder if this is really portable CPP?

It's fairly portable in practice, but there are some gotchas.  The C
Standard says, "The method by which a sequence of preprocessing tokens
between a < and a > preprocessing token pair or a pair of " characters
is combined into a single header name preprocessing token is
implementation-defined."  It might be nice to find a better solution.

reply via email to

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