[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/android 2222c7c3356 7/8: * src/image.c (imagemagick_load_image):
From: |
Po Lu |
Subject: |
feature/android 2222c7c3356 7/8: * src/image.c (imagemagick_load_image): Check HAVE_DECL_xxx. |
Date: |
Wed, 22 Feb 2023 08:34:30 -0500 (EST) |
branch: feature/android
commit 2222c7c3356baa81cd404e62340e694a8ef388f5
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
* src/image.c (imagemagick_load_image): Check HAVE_DECL_xxx.
---
src/image.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/image.c b/src/image.c
index 7d36f8c862f..2e6aa0ce0e3 100644
--- a/src/image.c
+++ b/src/image.c
@@ -10835,7 +10835,8 @@ imagemagick_load_image (struct frame *f, struct image
*img,
return 0;
}
-#ifdef HAVE_MAGICKAUTOORIENTIMAGE
+#if defined HAVE_MAGICKAUTOORIENTIMAGE \
+ || HAVE_DECL_MAGICKAUTOORIENTIMAGE
/* If no :rotation is explicitly specified, apply the automatic
rotation from EXIF. */
if (NILP (image_spec_value (img->spec, QCrotation, NULL)))
@@ -10992,7 +10993,8 @@ imagemagick_load_image (struct frame *f, struct image
*img,
{
MagickWand *new_wand;
MagickSetImageBackgroundColor (image_wand, bg_wand);
-#ifdef HAVE_MAGICKMERGEIMAGELAYERS
+#if defined HAVE_MAGICKMERGEIMAGELAYERS \
+ || HAVE_DECL_MAGICKMERGEIMAGELAYERS
new_wand = MagickMergeImageLayers (image_wand, MergeLayer);
#else
new_wand = MagickFlattenImages (image_wand);
@@ -11021,8 +11023,9 @@ imagemagick_load_image (struct frame *f, struct image
*img,
init_color_table ();
-#if defined (HAVE_MAGICKEXPORTIMAGEPIXELS) && \
- ! defined (HAVE_NS) && ! defined (HAVE_HAIKU)
+#if (defined (HAVE_MAGICKEXPORTIMAGEPIXELS) \
+ || HAVE_DECL_MAGICKEXPORTIMAGEPIXELS) \
+ && ! defined (HAVE_NS) && ! defined (HAVE_HAIKU)
if (imagemagick_render_type != 0)
{
/* Magicexportimage is normally faster than pixelpushing. This
- feature/android updated (a892c0487a6 -> 1d84465236f), Po Lu, 2023/02/22
- feature/android 86f10534dcc 2/8: Add cross-compilation test for cleanup attribute, Po Lu, 2023/02/22
- feature/android 137bdaced6a 1/8: Update Android port, Po Lu, 2023/02/22
- feature/android 2222c7c3356 7/8: * src/image.c (imagemagick_load_image): Check HAVE_DECL_xxx.,
Po Lu <=
- feature/android 8356412d625 3/8: Merge remote-tracking branch 'origin/master' into feature/android, Po Lu, 2023/02/22
- feature/android 767da53fa3a 6/8: Update Android port, Po Lu, 2023/02/22
- feature/android 1e6f957c0db 4/8: Update Android port, Po Lu, 2023/02/22
- feature/android f3b6cbb6755 5/8: ; * src/androidmenu.c (android_menu_show): Fix typo., Po Lu, 2023/02/22
- feature/android 1d84465236f 8/8: ; Fix typo, Po Lu, 2023/02/22