unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: emacs-devel@gnu.org, cygwin@cygwin.com
Subject: Re: A warning building Emacs-cvs with recent Cygwin DLL
Date: Fri, 25 Jan 2008 12:16:30 +0200	[thread overview]
Message-ID: <umyqumcqp.fsf@gnu.org> (raw)
In-Reply-To: <4799A7E4.9020203@alice.it> (message from Angelo Graziosi on Fri, 	25 Jan 2008 10:12:04 +0100)

> Date: Fri, 25 Jan 2008 10:12:04 +0100
> From: Angelo Graziosi <angelo.graziosi@alice.it>
> Cc: cygwin@cygwin.com
> 
> With Cygwin DLL 1.5.25 (and the changes to 'tz...', I suppose), building 
> Emacs from CVS gives this warning:
> 
> ...
> gcc -c  -Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. -I/tmp/emacs/src 
> -I/usr/X11R6/include    -g -O2 -Wno-pointer-sign  /tmp/emacs/src/strftime.c
> 
> /tmp/emacs/src/strftime.c:58: warning: '_tzname' redeclared without 
> dllimport attribute: previous dllimport ignored
> ...
> 
> It seems that the following simple patch avoid it:
> =================================================
> --- strftime.c.orig	2007-01-14 04:24:37.000000000 +0100
> +++ strftime.c	2008-01-24 12:04:40.031250000 +0100
> @@ -55,9 +55,13 @@
>   #endif
>   #if HAVE_TZNAME
>   #ifndef USE_CRT_DLL
> +#ifdef __CYGWIN__
> +extern __IMPORT char *tzname[];
> +#else
>   extern char *tzname[];
>   #endif
>   #endif
> +#endif

Thanks.  But it's better to put this kind of platform-dependent stuff
in src/s/cygwin.h, not in general source files.  Would that work for
you?



  reply	other threads:[~2008-01-25 10:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-25  9:12 A warning building Emacs-cvs with recent Cygwin DLL Angelo Graziosi
2008-01-25 10:16 ` Eli Zaretskii [this message]
2008-01-25 10:58   ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2008-01-25 10:09 Angelo Graziosi

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/emacs/

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

  git send-email \
    --in-reply-to=umyqumcqp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=angelo.graziosi@alice.it \
    --cc=cygwin@cygwin.com \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).