unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* guile-1.8.6: libguile/inline.h nitpick
@ 2009-01-28  0:22 David Fang
  2009-02-05 22:15 ` Neil Jerram
  0 siblings, 1 reply; 3+ messages in thread
From: David Fang @ 2009-01-28  0:22 UTC (permalink / raw)
  To: guile-devel

Hi all,

Minor nit about the "libguile/inline.h" header:

I typically compile with g++ ... -Wundef -Werror, which catches uses of 
undefined preprocessor tokens:

/usr/local/include/libguile/inline.h:57:31: "__APPLE_CC__" is not defined
In file included from /usr/local/include/libguile.h:114,
/usr/local/include/libguile/inline.h:57:31: "__APPLE_CC__" is not defined

__APPLE_CC__ is only defined for Apple, which is causing my compiles to 
fail (didn't used to fail with older guile.)


Can we change line 57 from:

# if (defined __GNUC__) && (!(__APPLE_CC__ > 5400 && __STDC_VERSION__ >= 
199901L

to something like:

# if (defined __GNUC__) && (!((defined __APPLE_CC__) && __APPLE_CC__ > 
5400 && __STDC_VERSION__ >= 199901L

which checks for __APPLE_CC__ defined before using it?

Thanks.

Fang


David Fang
http://www.csl.cornell.edu/~fang/
http://www.achronix.com/





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-05 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-28  0:22 guile-1.8.6: libguile/inline.h nitpick David Fang
2009-02-05 22:15 ` Neil Jerram
2009-02-05 22:24   ` David Fang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).