* src/w32select.c (convert_dibv5_to_png) [!HAVE_NATIVE_IMAGE_API]:
Fail if GDI+ cannot be used. Patch by Cecilio Pardo
<cpardo@imayhem.com>. (Bug#71909)
* etc/NEWS: Mention this dependency.
(cherry picked from commit
8a7910fb67e3b89de430d3b3e5009b145ec0c602)
+++
** Emacs on MS-Windows now supports 'yank-media'.
This command inserts clipboard data of different formats into the
-current buffer, if the major mode supports it.
+current buffer, if the major mode supports it. (Support for
+'yank-media' will be unavailable on MS-Windows if Emacs was configured
+'--without-native-image-api'.)
\f
static bool
convert_dibv5_to_png (char *data, int size, char *temp_file)
{
+#ifdef HAVE_NATIVE_IMAGE_API
CLSID clsid_png;
if (!w32_gdiplus_startup ()
if (status != Ok)
return false;
return true;
+#else /* !HAVE_NATIVE_IMAGE_API */
+ return false;
+#endif
}
static int