diff options
| author | Eli Zaretskii | 2013-10-12 11:48:31 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-10-12 11:48:31 +0300 |
| commit | 567f95ecac7ae853b95c41dbf7ead35af645e765 (patch) | |
| tree | 6542f9618e42d152f808592b05b62268cd4351ac /src/image.c | |
| parent | 1b12c797ae831037abaa8470a394fa26edeadb64 (diff) | |
| download | emacs-567f95ecac7ae853b95c41dbf7ead35af645e765.tar.gz emacs-567f95ecac7ae853b95c41dbf7ead35af645e765.zip | |
Avoid compilation warnings in image.c.
src/image.c (GIFLIB_MAJOR, GIFLIB_MINOR, GIFLIB_RELEASE): Move back
after inclusion of gif_lib.h, thus fixing compiler warnings caused
by 2013-10-10T19:15:33Z!eggert@cs.ucla.edu.
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/image.c b/src/image.c index ca2ef67c0b9..bb3290a89f6 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -7203,21 +7203,8 @@ gif_image_p (Lisp_Object object) | |||
| 7203 | 7203 | ||
| 7204 | #ifdef HAVE_GIF | 7204 | #ifdef HAVE_GIF |
| 7205 | 7205 | ||
| 7206 | /* Giflib before 5.0 didn't define these macros. */ | ||
| 7207 | #ifndef GIFLIB_MAJOR | ||
| 7208 | #define GIFLIB_MAJOR 4 | ||
| 7209 | #endif | ||
| 7210 | |||
| 7211 | #if defined (HAVE_NTGUI) | 7206 | #if defined (HAVE_NTGUI) |
| 7212 | 7207 | ||
| 7213 | /* Giflib before 5.0 didn't define these macros (used only if HAVE_NTGUI). */ | ||
| 7214 | #ifndef GIFLIB_MINOR | ||
| 7215 | #define GIFLIB_MINOR 0 | ||
| 7216 | #endif | ||
| 7217 | #ifndef GIFLIB_RELEASE | ||
| 7218 | #define GIFLIB_RELEASE 0 | ||
| 7219 | #endif | ||
| 7220 | |||
| 7221 | /* winuser.h might define DrawText to DrawTextA or DrawTextW. | 7208 | /* winuser.h might define DrawText to DrawTextA or DrawTextW. |
| 7222 | Undefine before redefining to avoid a preprocessor warning. */ | 7209 | Undefine before redefining to avoid a preprocessor warning. */ |
| 7223 | #ifdef DrawText | 7210 | #ifdef DrawText |
| @@ -7228,12 +7215,25 @@ gif_image_p (Lisp_Object object) | |||
| 7228 | #include <gif_lib.h> | 7215 | #include <gif_lib.h> |
| 7229 | #undef DrawText | 7216 | #undef DrawText |
| 7230 | 7217 | ||
| 7218 | /* Giflib before 5.0 didn't define these macros (used only if HAVE_NTGUI). */ | ||
| 7219 | #ifndef GIFLIB_MINOR | ||
| 7220 | #define GIFLIB_MINOR 0 | ||
| 7221 | #endif | ||
| 7222 | #ifndef GIFLIB_RELEASE | ||
| 7223 | #define GIFLIB_RELEASE 0 | ||
| 7224 | #endif | ||
| 7225 | |||
| 7231 | #else /* HAVE_NTGUI */ | 7226 | #else /* HAVE_NTGUI */ |
| 7232 | 7227 | ||
| 7233 | #include <gif_lib.h> | 7228 | #include <gif_lib.h> |
| 7234 | 7229 | ||
| 7235 | #endif /* HAVE_NTGUI */ | 7230 | #endif /* HAVE_NTGUI */ |
| 7236 | 7231 | ||
| 7232 | /* Giflib before 5.0 didn't define these macros. */ | ||
| 7233 | #ifndef GIFLIB_MAJOR | ||
| 7234 | #define GIFLIB_MAJOR 4 | ||
| 7235 | #endif | ||
| 7236 | |||
| 7237 | #ifdef WINDOWSNT | 7237 | #ifdef WINDOWSNT |
| 7238 | 7238 | ||
| 7239 | /* GIF library details. */ | 7239 | /* GIF library details. */ |