From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Fang Newsgroups: gmane.lisp.guile.user Subject: libguile/__scm.h patchlet Date: Thu, 8 Mar 2007 15:30:40 -0500 (EST) Message-ID: <20070308150440.S22277-100000@shannon.csl.cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1173385868 22139 80.91.229.12 (8 Mar 2007 20:31:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 20:31:08 +0000 (UTC) To: Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Mar 08 21:30:59 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPPGJ-0002e4-1V for guile-user@m.gmane.org; Thu, 08 Mar 2007 21:30:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPPGX-0000tf-Dk for guile-user@m.gmane.org; Thu, 08 Mar 2007 15:31:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPPGS-0000sw-Ir for guile-user@gnu.org; Thu, 08 Mar 2007 15:31:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPPGQ-0000sk-6Q for guile-user@gnu.org; Thu, 08 Mar 2007 15:31:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPPGP-0000sh-U9 for guile-user@gnu.org; Thu, 08 Mar 2007 15:31:01 -0500 Original-Received: from shannon.csl.cornell.edu ([128.84.224.88]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HPPGA-0006I8-FE for guile-user@gnu.org; Thu, 08 Mar 2007 15:30:46 -0500 Original-Received: from localhost (fang@localhost) by shannon.csl.cornell.edu (8.11.3/8.9.2) with ESMTP id l28KUed22421 for ; Thu, 8 Mar 2007 15:30:40 -0500 (EST) (envelope-from fang@shannon.csl.cornell.edu) X-Authentication-Warning: shannon.csl.cornell.edu: fang owned process doing -bs X-detected-kernel: FreeBSD 2.0-4.2 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5870 Archived-At: Hi, I'm encountering a minor annnoyance in the guile-1.6 headers: #ifdef STDC_HEADERS # include # if HAVE_SYS_TYPES_H # include # endif # if HAVE_SYS_STDTYPES_H # include # endif # include #endif /* def STDC_HEADERS */ On systems that are missing or (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