diff options
| author | Yuuki Harano | 2021-11-13 16:41:29 +0900 |
|---|---|---|
| committer | Yuuki Harano | 2021-11-13 16:41:29 +0900 |
| commit | 3e20d50fc5a8fc94b571e140a696ccd65040e6c1 (patch) | |
| tree | bc8ae73c3e78ac755d257895f3c1b8a66c644618 /src | |
| parent | c31d3dacf7f153589b6e7a5f5204937c64e7fd24 (diff) | |
| download | emacs-3e20d50fc5a8fc94b571e140a696ccd65040e6c1.tar.gz emacs-3e20d50fc5a8fc94b571e140a696ccd65040e6c1.zip | |
Revert #if changes
I changed some "#ifdef"s to "#if defined"s by mistake, so I reverted them.
* src/alloc.c: Reverted.
(garbage_collect): Reverted.
* src/emacs.c (main): Reverted.
* src/image.c (xpm_load_image): Reverted.
(image_disable_image): Reverted.
(image_build_heuristic_mask): Reverted.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 4 | ||||
| -rw-r--r-- | src/emacs.c | 2 | ||||
| -rw-r--r-- | src/image.c | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/alloc.c b/src/alloc.c index 2d25f8205ae..9388cf1d08f 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -96,7 +96,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 96 | #include <unistd.h> | 96 | #include <unistd.h> |
| 97 | #include <fcntl.h> | 97 | #include <fcntl.h> |
| 98 | 98 | ||
| 99 | #if defined(USE_GTK) | 99 | #ifdef USE_GTK |
| 100 | # include "gtkutil.h" | 100 | # include "gtkutil.h" |
| 101 | #endif | 101 | #endif |
| 102 | #ifdef WINDOWSNT | 102 | #ifdef WINDOWSNT |
| @@ -6148,7 +6148,7 @@ garbage_collect (void) | |||
| 6148 | mark_pgtkterm(); | 6148 | mark_pgtkterm(); |
| 6149 | #endif | 6149 | #endif |
| 6150 | 6150 | ||
| 6151 | #if defined(USE_GTK) | 6151 | #ifdef USE_GTK |
| 6152 | xg_mark_data (); | 6152 | xg_mark_data (); |
| 6153 | #endif | 6153 | #endif |
| 6154 | 6154 | ||
diff --git a/src/emacs.c b/src/emacs.c index 925f167d5fa..790740deb1a 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -2287,7 +2287,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem | |||
| 2287 | #ifdef HAVE_DBUS | 2287 | #ifdef HAVE_DBUS |
| 2288 | init_dbusbind (); | 2288 | init_dbusbind (); |
| 2289 | #endif | 2289 | #endif |
| 2290 | #if defined(USE_GTK) | 2290 | #ifdef USE_GTK |
| 2291 | #ifndef HAVE_PGTK | 2291 | #ifndef HAVE_PGTK |
| 2292 | init_xterm (); | 2292 | init_xterm (); |
| 2293 | #endif | 2293 | #endif |
diff --git a/src/image.c b/src/image.c index f911da51eaa..d03e16e5c8c 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -5088,7 +5088,7 @@ xpm_load_image (struct frame *f, | |||
| 5088 | } | 5088 | } |
| 5089 | 5089 | ||
| 5090 | if (!image_create_x_image_and_pixmap (f, img, width, height, 0, &ximg, 0) | 5090 | if (!image_create_x_image_and_pixmap (f, img, width, height, 0, &ximg, 0) |
| 5091 | #if !defined(HAVE_NS) | 5091 | #ifndef HAVE_NS |
| 5092 | || !image_create_x_image_and_pixmap (f, img, width, height, 1, | 5092 | || !image_create_x_image_and_pixmap (f, img, width, height, 1, |
| 5093 | &mask_img, 1) | 5093 | &mask_img, 1) |
| 5094 | #endif | 5094 | #endif |
| @@ -5216,7 +5216,7 @@ xpm_load_image (struct frame *f, | |||
| 5216 | 5216 | ||
| 5217 | PUT_PIXEL (ximg, x, y, | 5217 | PUT_PIXEL (ximg, x, y, |
| 5218 | FIXNUMP (color_val) ? XFIXNUM (color_val) : frame_fg); | 5218 | FIXNUMP (color_val) ? XFIXNUM (color_val) : frame_fg); |
| 5219 | #if !defined(HAVE_NS) | 5219 | #ifndef HAVE_NS |
| 5220 | PUT_PIXEL (mask_img, x, y, | 5220 | PUT_PIXEL (mask_img, x, y, |
| 5221 | (!EQ (color_val, Qt) ? PIX_MASK_DRAW | 5221 | (!EQ (color_val, Qt) ? PIX_MASK_DRAW |
| 5222 | : (have_mask = true, PIX_MASK_RETAIN))); | 5222 | : (have_mask = true, PIX_MASK_RETAIN))); |
| @@ -5237,7 +5237,7 @@ xpm_load_image (struct frame *f, | |||
| 5237 | IMAGE_BACKGROUND (img, f, ximg); | 5237 | IMAGE_BACKGROUND (img, f, ximg); |
| 5238 | 5238 | ||
| 5239 | image_put_x_image (f, img, ximg, 0); | 5239 | image_put_x_image (f, img, ximg, 0); |
| 5240 | #if !defined(HAVE_NS) | 5240 | #ifndef HAVE_NS |
| 5241 | if (have_mask) | 5241 | if (have_mask) |
| 5242 | { | 5242 | { |
| 5243 | /* Fill in the background_transparent field while we have the | 5243 | /* Fill in the background_transparent field while we have the |
| @@ -5968,7 +5968,7 @@ image_disable_image (struct frame *f, struct image *img) | |||
| 5968 | if (n_planes < 2 || cross_disabled_images) | 5968 | if (n_planes < 2 || cross_disabled_images) |
| 5969 | { | 5969 | { |
| 5970 | #ifndef HAVE_NTGUI | 5970 | #ifndef HAVE_NTGUI |
| 5971 | #if !defined(HAVE_NS) /* TODO: NS support, however this not needed for toolbars */ | 5971 | #ifndef HAVE_NS /* TODO: NS support, however this not needed for toolbars */ |
| 5972 | 5972 | ||
| 5973 | #ifndef USE_CAIRO | 5973 | #ifndef USE_CAIRO |
| 5974 | #define CrossForeground(f) BLACK_PIX_DEFAULT (f) | 5974 | #define CrossForeground(f) BLACK_PIX_DEFAULT (f) |
| @@ -6046,7 +6046,7 @@ image_build_heuristic_mask (struct frame *f, struct image *img, | |||
| 6046 | image_clear_image_1 (f, img, CLEAR_IMAGE_MASK); | 6046 | image_clear_image_1 (f, img, CLEAR_IMAGE_MASK); |
| 6047 | 6047 | ||
| 6048 | #ifndef HAVE_NTGUI | 6048 | #ifndef HAVE_NTGUI |
| 6049 | #if !defined HAVE_NS | 6049 | #ifndef HAVE_NS |
| 6050 | /* Create an image and pixmap serving as mask. */ | 6050 | /* Create an image and pixmap serving as mask. */ |
| 6051 | if (! image_create_x_image_and_pixmap (f, img, img->width, img->height, 1, | 6051 | if (! image_create_x_image_and_pixmap (f, img, img->width, img->height, 1, |
| 6052 | &mask_img, 1)) | 6052 | &mask_img, 1)) |
| @@ -6108,7 +6108,7 @@ image_build_heuristic_mask (struct frame *f, struct image *img, | |||
| 6108 | if (XGetPixel (ximg, x, y) == bg) | 6108 | if (XGetPixel (ximg, x, y) == bg) |
| 6109 | ns_set_alpha (ximg, x, y, 0); | 6109 | ns_set_alpha (ximg, x, y, 0); |
| 6110 | #endif /* HAVE_NS */ | 6110 | #endif /* HAVE_NS */ |
| 6111 | #if !defined HAVE_NS | 6111 | #ifndef HAVE_NS |
| 6112 | /* Fill in the background_transparent field while we have the mask handy. */ | 6112 | /* Fill in the background_transparent field while we have the mask handy. */ |
| 6113 | image_background_transparent (img, f, mask_img); | 6113 | image_background_transparent (img, f, mask_img); |
| 6114 | 6114 | ||