bug-gnulib
[Top][All Lists]
Advanced

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

Re: rpl_close replaces struct members named 'close'


From: Paul Eggert
Subject: Re: rpl_close replaces struct members named 'close'
Date: Tue, 25 Dec 2007 18:09:54 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Sylvain Beucler <address@hidden> writes:

> I think this makes it difficult to order the #include statements
> correctly.

Yes, that's true.  One workaround would be to have SDL_rwops.h include
unistd.h before defining its 'close' member.  Admittedly not everyone
likes such workarounds.

A problem with using function-style macros is that they don't work
with programs that use functions like 'close' without calling them,
e.g., they pass 'close' as an argument to some other function.




reply via email to

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