diff options
| author | Claudio Bley | 2013-11-01 10:52:22 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-11-01 10:52:22 +0200 |
| commit | d14c81eec79c626f017e015c7ecf24d7662504bc (patch) | |
| tree | d1d11da65e91b55be23b665b5b601bee5dfc5b15 /src/image.c | |
| parent | 983d0df5e186d445d2b1936536363e9343fd0c60 (diff) | |
| download | emacs-d14c81eec79c626f017e015c7ecf24d7662504bc.tar.gz emacs-d14c81eec79c626f017e015c7ecf24d7662504bc.zip | |
Support newer versions of libjpeg on MS-Windows.
src/image.c (Qlibjpeg_version): New variable.
(syms_of_image): DEFSYM and initialize it.
lisp/term/w32-win.el (dynamic-library-alist): Support newer versions
of libjpeg starting with v7: look only for the DLL from the
version against which Emacs was built.
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/image.c b/src/image.c index 6691cfc8a10..fca1bb077f6 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -87,11 +87,12 @@ typedef struct w32_bitmap_record Bitmap_Record; | |||
| 87 | #define x_defined_color w32_defined_color | 87 | #define x_defined_color w32_defined_color |
| 88 | #define DefaultDepthOfScreen(screen) (one_w32_display_info.n_cbits) | 88 | #define DefaultDepthOfScreen(screen) (one_w32_display_info.n_cbits) |
| 89 | 89 | ||
| 90 | /* Versions of libpng and libgif that we were compiled with, or -1 if | 90 | /* Versions of libpng, libgif, and libjpeg that we were compiled with, |
| 91 | no PNG/GIF support was compiled in. This is tested by w32-win.el | 91 | or -1 if no PNG/GIF support was compiled in. This is tested by |
| 92 | to correctly set up the alist used to search for the respective | 92 | w32-win.el to correctly set up the alist used to search for the |
| 93 | image libraries. */ | 93 | respective image libraries. */ |
| 94 | Lisp_Object Qlibpng_version, Qlibgif_version; | 94 | Lisp_Object Qlibpng_version, Qlibgif_version, Qlibjpeg_version; |
| 95 | |||
| 95 | #endif /* HAVE_NTGUI */ | 96 | #endif /* HAVE_NTGUI */ |
| 96 | 97 | ||
| 97 | #ifdef HAVE_NS | 98 | #ifdef HAVE_NS |
| @@ -9411,6 +9412,14 @@ non-numeric, there is no explicit limit on the size of images. */); | |||
| 9411 | #else | 9412 | #else |
| 9412 | make_number (-1) | 9413 | make_number (-1) |
| 9413 | #endif | 9414 | #endif |
| 9415 | ); | ||
| 9416 | DEFSYM (Qlibjpeg_version, "libjpeg-version"); | ||
| 9417 | Fset (Qlibjpeg_version, | ||
| 9418 | #if HAVE_JPEG | ||
| 9419 | make_number (JPEG_LIB_VERSION) | ||
| 9420 | #else | ||
| 9421 | make_number (-1) | ||
| 9422 | #endif | ||
| 9414 | ); | 9423 | ); |
| 9415 | #endif | 9424 | #endif |
| 9416 | 9425 | ||