]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak the Cygw32 build
authorEli Zaretskii <eliz@gnu.org>
Fri, 7 Jun 2024 13:34:53 +0000 (16:34 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 8 Jun 2024 12:58:47 +0000 (14:58 +0200)
It was broken by latest changes to w32image.c.
* src/emacs.c (main): Call 'syms_of_w32image' and
'globals_of_w32image' only if native image APIs are enabled.
(Bug#71412)

(cherry picked from commit b4b4c0fec4c52a8f9b067d1cca53fa8ddbf03799)

src/emacs.c

index 036bc1864e65d5cbdd36de1f0c7d327586c5f52a..64f850c58a717e10d5ba341b7151bdfbf5077263 100644 (file)
@@ -2359,7 +2359,9 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
       syms_of_fringe ();
       syms_of_image ();
 #ifdef HAVE_NTGUI
+# if HAVE_NATIVE_IMAGE_API
       syms_of_w32image ();
+# endif
 #endif /* HAVE_NTGUI */
 #endif /* HAVE_WINDOW_SYSTEM */
 #ifdef HAVE_X_WINDOWS
@@ -2498,7 +2500,9 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
       globals_of_w32font ();
       globals_of_w32fns ();
       globals_of_w32menu ();
+# if HAVE_NATIVE_IMAGE_API
       globals_of_w32image ();
+# endif
 #endif  /* HAVE_NTGUI */
 
 #if defined WINDOWSNT || defined HAVE_NTGUI