unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* libguile/__scm.h patchlet
@ 2007-03-08 20:30 David Fang
  0 siblings, 0 replies; only message in thread
From: David Fang @ 2007-03-08 20:30 UTC (permalink / raw)
  To: guile-user

Hi,
	I'm encountering a minor annnoyance in the guile-1.6 headers:

#ifdef STDC_HEADERS
# include <stdlib.h>
# if HAVE_SYS_TYPES_H
#  include <sys/types.h>
# endif
# if HAVE_SYS_STDTYPES_H
#  include <sys/stdtypes.h>
# endif
#  include <stddef.h>
#endif /* def STDC_HEADERS */

On systems that are missing <sys/types.h> or <sys/stdtypes.h> (more
likely), I can't use -Werror to compile because the configure headers
don't define say HAVE_SYS_STDTYPES_H, which trips a warning like:

/sw/include/libguile/__scm.h:315:6: "HAVE_SYS_STDTYPES_H" is not defined
In file included from /sw/include/libguile.h:97,

which is then promoted to an error (by request).  A discussion in recent
months on the autoconf mailing list concluded that
"#ifdef HAVE_SOME_HEADER_H" was a more appropriate usage of config.h
macros.

Might I request the macro tests in the above context be updated
accordingly (#ifdef in place of #if)?

guile-1.8's headers also have two instances of "#if HAVE" in the headers
are on standard headers that are usually found.

/sw/include/libguile/tags.h:#if HAVE_INTTYPES_H
/sw/include/libguile/tags.h:# if HAVE_STDINT_H

Either way, it's not a big deal, I can always override with -Wno-error.
This is the only problem with the headers I've found, so the headers are
in quite good shape.


Thanks.


David Fang
Computer Systems Laboratory
Electrical & Computer Engineering
Cornell University
http://www.csl.cornell.edu/~fang/
	-- (2400 baud? Netscape 3.0?? lynx??? No problem!)



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-08 20:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-08 20:30 libguile/__scm.h patchlet 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).