This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: missing definition of __STRING macro in standard cygwin headers
Brian Dessent wrote:
Eric Blake wrote:
Not to mention the fact that it's incredibly silly to rely on libc
headers to define something as trivial as the stringify operator which
is a standard part of the C language. Does it also require
__COMMENTBEGIN to be defined as /*? __BRACEBEGIN as {? Why not just
use #x in the code in the first place?
Because the stringify operator only works inside a #define?
By the way, I don't see why you can't just build this package like:
./configure CPPFLAGS="-D__STRING=#x" ..rest of configure options..
It wouldn't work.
#define __STRING #x != #define __STRING(x) #x
But I do agree with Eric.
Anyway, if chosen to change the FAAC side of the fence, instead of:
#ifdef __CYGWIN__
#define __STRING ...
#endif
It would be perhaps better to:
#ifndef __STRING
#define __STRING ...
#endif
Cheers,
Pedro Alves
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/