all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Arash Esbati <arash@gnu.org>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: master doesn't build on Win10
Date: Fri, 29 Oct 2021 11:27:42 -0700	[thread overview]
Message-ID: <CADwFkmmj=iwJuteStWs0jOiCT9W7vLf-Z2ZBPwHs=TSb1D2_LQ@mail.gmail.com> (raw)
In-Reply-To: <86ee83hf88.fsf@gnu.org>

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

Arash Esbati <arash@gnu.org> writes:

> I suspect it is due to change f9282e1d72[1].  My installed giflib
> version is 5.2.1 (with GCC 11.2).

Thanks.  Yes, that's the commit that caused this.

> Is this a Windows only issue?

Yes.  Could you please check if the attached patch fixes it?

[-- Attachment #2: 0001-src-image.c-Fix-building-with-giflib-on-MS-Windows.patch --]
[-- Type: text/x-diff, Size: 1621 bytes --]

From d9abc45ab53dbed31a5853087a7be21e804d9668 Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefan@marxist.se>
Date: Fri, 29 Oct 2021 20:20:46 +0200
Subject: [PATCH] * src/image.c: Fix building with giflib on MS-Windows.

---
 src/image.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/image.c b/src/image.c
index 376a53e967..6ab9670e4b 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8277,6 +8277,8 @@ DEF_DLL_FN (GifFileType *, DGifOpenFileName, (const char *));
 #  else
 DEF_DLL_FN (GifFileType *, DGifOpen, (void *, InputFunc, int *));
 DEF_DLL_FN (GifFileType *, DGifOpenFileName, (const char *, int *));
+DEF_DLL_FN (int, DGifSavedExtensionToGCB, (GifFileType *, int,
+					   GraphicsControlBlock *));
 #  endif
 #  if HAVE_GIFERRORSTRING
 DEF_DLL_FN (char const *, GifErrorString, (int));
@@ -8294,6 +8296,9 @@ init_gif_functions (void)
   LOAD_DLL_FN (library, DGifSlurp);
   LOAD_DLL_FN (library, DGifOpen);
   LOAD_DLL_FN (library, DGifOpenFileName);
+#  if GIFLIB_MAJOR >= 5
+  LOAD_DLL_FN (library, DGifSavedExtensionToGCB);
+#  endif
 #  if HAVE_GIFERRORSTRING
   LOAD_DLL_FN (library, GifErrorString);
 #  endif
@@ -8304,12 +8309,14 @@ init_gif_functions (void)
 #  undef DGifOpen
 #  undef DGifOpenFileName
 #  undef DGifSlurp
+#  undef DGifSavedExtensionToGCB
 #  undef GifErrorString
 
 #  define DGifCloseFile fn_DGifCloseFile
 #  define DGifOpen fn_DGifOpen
 #  define DGifOpenFileName fn_DGifOpenFileName
 #  define DGifSlurp fn_DGifSlurp
+#  define DGifSavedExtensionToGCB fn_DGifSavedExtensionToGCB
 #  define GifErrorString fn_GifErrorString
 
 # endif /* WINDOWSNT */
-- 
2.30.2


  reply	other threads:[~2021-10-29 18:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29 18:12 master doesn't build on Win10 Arash Esbati
2021-10-29 18:27 ` Stefan Kangas [this message]
2021-10-29 18:36   ` Stefan Kangas
2021-10-29 19:05     ` Arash Esbati

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

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

  git send-email \
    --in-reply-to='CADwFkmmj=iwJuteStWs0jOiCT9W7vLf-Z2ZBPwHs=TSb1D2_LQ@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=arash@gnu.org \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.