unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: bug-guile@gnu.org
Subject: Re: i18n broken on mingw cross compile
Date: Fri, 12 Sep 2008 09:45:41 +0200	[thread overview]
Message-ID: <87r67pst7e.fsf@gnu.org> (raw)
In-Reply-To: 87bpyueah3.fsf@gnu.org

[-- Attachment #1: Type: text/plain, Size: 887 bytes --]

Hi,

ludo@gnu.org (Ludovic Courtès) writes:

> Han-Wen Nienhuys <hanwen@xs4all.nl> writes:
>
>> In file included from /home/lilydev/vc/gub/target/mingw/root/usr/include/sys/time.h:3,
>>                  from ../libguile/scmconfig.h:25,
>>                  from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/__scm.h:52,
>>                  from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile.h:30,
>>                  from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/discouraged.c:22:
>> ../lib/time.h:76: error: expected ';', ',' or ')' before '__timer'
>> ../lib/time.h:78: error: expected ';', ',' or ')' before '__timer'
>
> Reported here:
>
>   http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/14574

Actually, as suggested by Eric Blake, this is probably fixed by the
attached patch (committed).  Can you confirm it?

Thanks,
Ludo'.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: The patch --]
[-- Type: text/x-patch, Size: 1231 bytes --]

From 1778e9f5fba27a08af73c2757e16ba01ac1d1c23 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Fri, 12 Sep 2008 09:41:54 +0200
Subject: [PATCH] Include <config.h> in `discouraged.c'.

* libguile/discouraged.c: Include <config.h> first so that files that
  rely on `config.h' macros (such as Gnulib-provided headers) work as
  expected.
---
 libguile/discouraged.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/libguile/discouraged.c b/libguile/discouraged.c
index 07663e0..3ffbed1 100644
--- a/libguile/discouraged.c
+++ b/libguile/discouraged.c
@@ -2,7 +2,7 @@
    discourage something, move it here when that is feasible.
 */
 
-/* Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004, 2006, 2008 Free Software Foundation, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -19,7 +19,12 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "libguile.h"
+#if HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <libguile.h>
+
 
 #if (SCM_ENABLE_DISCOURAGED == 1)
 
-- 
1.6.0


  reply	other threads:[~2008-09-12  7:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-08 14:07 i18n broken on mingw cross compile Han-Wen Nienhuys
2008-09-09  9:30 ` Ludovic Courtès
2008-09-09 14:02   ` Han-Wen Nienhuys
2008-09-09 14:42     ` Ludovic Courtès
2008-09-10  2:38   ` Han-Wen Nienhuys
2008-09-11 19:41     ` Ludovic Courtès
2008-09-12  7:45       ` Ludovic Courtès [this message]
2008-09-13  3:27         ` Han-Wen Nienhuys
2008-09-13  3:54         ` Han-Wen Nienhuys
2008-09-13 13:55           ` Ludovic Courtès
2008-09-13 15:13             ` Han-Wen Nienhuys
2008-09-13 18:16               ` Ludovic Courtès
2008-09-13 18:50                 ` Han-Wen Nienhuys
2008-09-13 20:06                   ` Ludovic Courtès
2008-09-13 15:47             ` Han-Wen Nienhuys

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r67pst7e.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bug-guile@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).