summaryrefslogtreecommitdiffstats
path: root/chalk
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-10-30 11:09:38 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-10-30 11:09:38 -0500
commitd2b03dad3d0b458ab4146b4e51756e3ce8efe7cc (patch)
treeeb7906088c61f61c59005461e4ef0250cab9dd4e /chalk
parente566a4bef04b83c4927349955ca7cca80aee1c09 (diff)
downloadkoffice-d2b03dad3d0b458ab4146b4e51756e3ce8efe7cc.tar.gz
koffice-d2b03dad3d0b458ab4146b4e51756e3ce8efe7cc.zip
Fix some "is not defined" warnings.
Diffstat (limited to 'chalk')
-rw-r--r--chalk/plugins/filters/cimg/CImg.h4
1 files changed, 2 insertions, 2 deletions
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);