From d2b03dad3d0b458ab4146b4e51756e3ce8efe7cc Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Tue, 30 Oct 2012 11:09:38 -0500 Subject: Fix some "is not defined" warnings. --- chalk/plugins/filters/cimg/CImg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chalk') diff --git a/chalk/plugins/filters/cimg/CImg.h b/chalk/plugins/filters/cimg/CImg.h index 23c7e221..315d1fe3 100644 --- a/chalk/plugins/filters/cimg/CImg.h +++ b/chalk/plugins/filters/cimg/CImg.h @@ -4059,7 +4059,7 @@ namespace cimg_library { XSendEvent(cimg::X11attr().display, window, False, 0, &event); pthread_mutex_unlock(cimg::X11attr().mutex); } else { -#if cimg_use_xshm +#ifdef cimg_use_xshm if (shminfo) XShmPutImage(cimg::X11attr().display,window,*cimg::X11attr().gc,image,0,0,0,0,width,height,False); else @@ -4157,7 +4157,7 @@ namespace cimg_library { if (fullscreen) XUngrabKeyboard(cimg::X11attr().display,CurrentTime); XDestroyWindow(cimg::X11attr().display,window); if (shminfo) { -#if cimg_use_xshm +#ifdef cimg_use_xshm XShmDetach(cimg::X11attr().display, shminfo); XDestroyImage(image); shmdt(shminfo->shmaddr); -- cgit v1.2.1