[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 6bf79d6 3/3: ; * src/image.c: Cleanup of #ifdef's related to HAVE
From: |
Eli Zaretskii |
Subject: |
master 6bf79d6 3/3: ; * src/image.c: Cleanup of #ifdef's related to HAVE_NATIVE_IMAGE_API. |
Date: |
Tue, 14 Apr 2020 11:22:23 -0400 (EDT) |
branch: master
commit 6bf79d65d35d558831e6e8279fa38320c5ffab87
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
; * src/image.c: Cleanup of #ifdef's related to HAVE_NATIVE_IMAGE_API.
---
src/image.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/image.c b/src/image.c
index 4ef3e9d..aacaf0b 100644
--- a/src/image.c
+++ b/src/image.c
@@ -10224,10 +10224,8 @@ initialize_image_type (struct image_type const *type)
#ifdef WINDOWSNT
Lisp_Object typesym = builtin_lisp_symbol (type->type);
-#ifdef HAVE_NATIVE_IMAGE_API
if (image_can_use_native_api (typesym))
return true;
-#endif
Lisp_Object tested = Fassq (typesym, Vlibrary_cache);
/* If we failed to load the library before, don't try again. */
@@ -10285,7 +10283,7 @@ static struct image_type const image_types[] =
{ SYMBOL_INDEX (Qpbm), pbm_image_p, pbm_load, image_clear_image },
};
-#ifdef HAVE_NATIVE_IMAGE_API
+#if HAVE_NATIVE_IMAGE_API
struct image_type native_image_type =
{ SYMBOL_INDEX (Qnative_image), native_image_p, native_image_load,
image_clear_image };
@@ -10297,7 +10295,7 @@ struct image_type native_image_type =
static struct image_type const *
lookup_image_type (Lisp_Object type)
{
-#ifdef HAVE_NATIVE_IMAGE_API
+#if HAVE_NATIVE_IMAGE_API
if (image_can_use_native_api (type))
return &native_image_type;
#endif