From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: Again on Windows support Date: Tue, 24 Mar 2009 20:32:02 +0000 Message-ID: <877i2eu0fx.fsf@arudy.ossau.uklinux.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1237926761 4457 80.91.229.12 (24 Mar 2009 20:32:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Mar 2009 20:32:41 +0000 (UTC) Cc: guile-devel To: "carlo.bramix" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Mar 24 21:33:58 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LmDJo-0004Gt-Au for guile-devel@m.gmane.org; Tue, 24 Mar 2009 21:33:52 +0100 Original-Received: from localhost ([127.0.0.1]:35751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmDIR-0003Xf-AR for guile-devel@m.gmane.org; Tue, 24 Mar 2009 16:32:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmDIL-0003W4-9L for guile-devel@gnu.org; Tue, 24 Mar 2009 16:32:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmDIF-0003M2-My for guile-devel@gnu.org; Tue, 24 Mar 2009 16:32:19 -0400 Original-Received: from [199.232.76.173] (port=52944 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmDIF-0003Lw-FC for guile-devel@gnu.org; Tue, 24 Mar 2009 16:32:15 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:60556) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LmDIF-00009J-5T for guile-devel@gnu.org; Tue, 24 Mar 2009 16:32:15 -0400 Original-Received: from arudy (host86-157-180-39.range86-157.btcentralplus.com [86.157.180.39]) by mail3.uklinux.net (Postfix) with ESMTP id 5CF471F69D8; Tue, 24 Mar 2009 20:32:12 +0000 (GMT) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 5138C3801E; Tue, 24 Mar 2009 20:32:02 +0000 (GMT) In-Reply-To: (carlo bramix's message of "Fri\, 20 Mar 2009 20\:37\:27 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8308 Archived-At: "carlo.bramix" writes: > Hello! > >> > LIBGUILE/GSUBR.C >> > ================ >> > function alloca() is undefined because under Windows the intrinsic >> > function is called _alloca(). >> >> Hm, I thought the Gnulib alloca thing should have fixed this. Does >> adding #include in gsubr.c not fix this? >> > > does not exists here. > Unfortunately, we (Windows users) have no other choice than including malloc.h There should be an in the "lib" subdirectory of the distribution. My one includes: #ifndef alloca # ifdef __GNUC__ # define alloca __builtin_alloca # elif defined _AIX # define alloca __alloca # elif defined _MSC_VER # include # define alloca _alloca ... So, if compiling with GCC, it should be picking up __builtin_alloca. If compiling with MSVC, it should be including malloc.h as you suggest. Neil