bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] sysexits.h


From: Simon Josefsson
Subject: Re: [Bug-gnulib] sysexits.h
Date: Wed, 11 Jun 2003 21:24:52 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Paul Eggert wrote:
>> It is certainly relevant from the point of the C and POSIX standards.
>> They both require that every C translation unit must contain at least
>> one external declaration.  "gcc -pedantic" checks for this.
>
> Does "typedef int dummy;" count as such an external declaration? I.e.
> will it work to write
>
>   #ifndef ELIDE_CODE
>     ... much code ,,.
>   #else
>     typedef int dummy;
>   #endif

IIRC, it has to be something that ends up in the object code.  I used
'static int dummy;' or something similar.





reply via email to

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