diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/image.c b/src/image.c index 6058bdf444c..9b41cf74993 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -75,11 +75,12 @@ typedef struct x_bitmap_record Bitmap_Record; | |||
| 75 | #endif /* HAVE_X_WINDOWS */ | 75 | #endif /* HAVE_X_WINDOWS */ |
| 76 | 76 | ||
| 77 | #ifdef HAVE_NTGUI | 77 | #ifdef HAVE_NTGUI |
| 78 | # ifdef WINDOWSNT | 78 | |
| 79 | /* We only need (or want) w32.h when we're _not_ | 79 | /* We need (or want) w32.h only when we're _not_ compiling for Cygwin. */ |
| 80 | * compiling for Cygwin */ | 80 | #ifdef WINDOWSNT |
| 81 | # include "w32.h" | 81 | # include "w32.h" |
| 82 | # endif /* WINDOWSNT */ | 82 | #endif |
| 83 | |||
| 83 | /* W32_TODO : Color tables on W32. */ | 84 | /* W32_TODO : Color tables on W32. */ |
| 84 | #undef COLOR_TABLE_SUPPORT | 85 | #undef COLOR_TABLE_SUPPORT |
| 85 | 86 | ||
| @@ -571,7 +572,7 @@ extern Lisp_Object Vlibrary_cache; | |||
| 571 | do { Vlibrary_cache = Fcons (Fcons (type, status), Vlibrary_cache); } while (0) | 572 | do { Vlibrary_cache = Fcons (Fcons (type, status), Vlibrary_cache); } while (0) |
| 572 | #else | 573 | #else |
| 573 | #define CACHE_IMAGE_TYPE(type, status) | 574 | #define CACHE_IMAGE_TYPE(type, status) |
| 574 | #endif /* WINDOWSNT */ | 575 | #endif |
| 575 | 576 | ||
| 576 | #define ADD_IMAGE_TYPE(type) \ | 577 | #define ADD_IMAGE_TYPE(type) \ |
| 577 | do { Vimage_types = Fcons (type, Vimage_types); } while (0) | 578 | do { Vimage_types = Fcons (type, Vimage_types); } while (0) |
| @@ -594,7 +595,7 @@ define_image_type (struct image_type *type) | |||
| 594 | 595 | ||
| 595 | if (type->init) | 596 | if (type->init) |
| 596 | { | 597 | { |
| 597 | #if defined (HAVE_NTGUI) && defined (WINDOWSNT) | 598 | #if defined HAVE_NTGUI && defined WINDOWSNT |
| 598 | /* If we failed to load the library before, don't try again. */ | 599 | /* If we failed to load the library before, don't try again. */ |
| 599 | Lisp_Object tested = Fassq (target_type, Vlibrary_cache); | 600 | Lisp_Object tested = Fassq (target_type, Vlibrary_cache); |
| 600 | if (CONSP (tested) && NILP (XCDR (tested))) | 601 | if (CONSP (tested) && NILP (XCDR (tested))) |
| @@ -3013,7 +3014,7 @@ static const struct image_keyword xpm_format[XPM_LAST] = | |||
| 3013 | {":background", IMAGE_STRING_OR_NIL_VALUE, 0} | 3014 | {":background", IMAGE_STRING_OR_NIL_VALUE, 0} |
| 3014 | }; | 3015 | }; |
| 3015 | 3016 | ||
| 3016 | #if defined(HAVE_NTGUI) && defined(WINDOWSNT) | 3017 | #if defined HAVE_NTGUI && defined WINDOWSNT |
| 3017 | static bool init_xpm_functions (void); | 3018 | static bool init_xpm_functions (void); |
| 3018 | #else | 3019 | #else |
| 3019 | #define init_xpm_functions NULL | 3020 | #define init_xpm_functions NULL |
| @@ -3240,7 +3241,7 @@ init_xpm_functions (void) | |||
| 3240 | 3241 | ||
| 3241 | #endif /* WINDOWSNT */ | 3242 | #endif /* WINDOWSNT */ |
| 3242 | 3243 | ||
| 3243 | #if defined (HAVE_NTGUI) && !defined (WINDOWSNT) | 3244 | #if defined HAVE_NTGUI && !defined WINDOWSNT |
| 3244 | /* Glue for code below */ | 3245 | /* Glue for code below */ |
| 3245 | #define fn_XpmReadFileToImage XpmReadFileToImage | 3246 | #define fn_XpmReadFileToImage XpmReadFileToImage |
| 3246 | #define fn_XpmCreateImageFromBuffer XpmCreateImageFromBuffer | 3247 | #define fn_XpmCreateImageFromBuffer XpmCreateImageFromBuffer |
| @@ -5352,7 +5353,7 @@ static const struct image_keyword png_format[PNG_LAST] = | |||
| 5352 | {":background", IMAGE_STRING_OR_NIL_VALUE, 0} | 5353 | {":background", IMAGE_STRING_OR_NIL_VALUE, 0} |
| 5353 | }; | 5354 | }; |
| 5354 | 5355 | ||
| 5355 | #if defined(HAVE_NTGUI) && defined (WINDOWSNT) | 5356 | #if defined HAVE_NTGUI && defined WINDOWSNT |
| 5356 | static bool init_png_functions (void); | 5357 | static bool init_png_functions (void); |
| 5357 | #else | 5358 | #else |
| 5358 | #define init_png_functions NULL | 5359 | #define init_png_functions NULL |
| @@ -6011,7 +6012,7 @@ static const struct image_keyword jpeg_format[JPEG_LAST] = | |||
| 6011 | {":background", IMAGE_STRING_OR_NIL_VALUE, 0} | 6012 | {":background", IMAGE_STRING_OR_NIL_VALUE, 0} |
| 6012 | }; | 6013 | }; |
| 6013 | 6014 | ||
| 6014 | #if defined(HAVE_NTGUI) && defined(WINDOWSNT) | 6015 | #if defined HAVE_NTGUI && defined WINDOWSNT |
| 6015 | static bool init_jpeg_functions (void); | 6016 | static bool init_jpeg_functions (void); |
| 6016 | #else | 6017 | #else |
| 6017 | #define init_jpeg_functions NULL | 6018 | #define init_jpeg_functions NULL |
| @@ -6075,7 +6076,7 @@ jpeg_image_p (Lisp_Object object) | |||
| 6075 | different name. This name, jpeg_boolean, remains in effect through | 6076 | different name. This name, jpeg_boolean, remains in effect through |
| 6076 | the rest of image.c. | 6077 | the rest of image.c. |
| 6077 | */ | 6078 | */ |
| 6078 | #if defined (CYGWIN) && defined (HAVE_NTGUI) | 6079 | #if defined CYGWIN && defined HAVE_NTGUI |
| 6079 | #define boolean jpeg_boolean | 6080 | #define boolean jpeg_boolean |
| 6080 | #endif | 6081 | #endif |
| 6081 | #include <jpeglib.h> | 6082 | #include <jpeglib.h> |
| @@ -7071,7 +7072,7 @@ static const struct image_keyword gif_format[GIF_LAST] = | |||
| 7071 | {":background", IMAGE_STRING_OR_NIL_VALUE, 0} | 7072 | {":background", IMAGE_STRING_OR_NIL_VALUE, 0} |
| 7072 | }; | 7073 | }; |
| 7073 | 7074 | ||
| 7074 | #if defined(HAVE_NTGUI) && defined(WINDOWSNT) | 7075 | #if defined HAVE_NTGUI && defined WINDOWSNT |
| 7075 | static bool init_gif_functions (void); | 7076 | static bool init_gif_functions (void); |
| 7076 | #else | 7077 | #else |
| 7077 | #define init_gif_functions NULL | 7078 | #define init_gif_functions NULL |