From bb716a4ca117c856d333fa8d9c152fda8a6acf2a Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Sat, 28 Mar 2020 12:31:22 +0800 Subject: [PATCH] util: renamed wmiv DEBUG constant name To prevent compilation warning message saying DEBUG name is already defined --- util/wmiv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/wmiv.c b/util/wmiv.c index 57ad4d4e..492af88e 100755 --- a/util/wmiv.c +++ b/util/wmiv.c @@ -54,7 +54,7 @@ extern int XpmCreatePixmapFromData(Display *, Drawable, char **, Pixmap *, Pixma #include "wmiv.h" #endif -#define DEBUG 0 +#define WMIV_DEBUG 0 #define FILE_SEPARATOR '/' Display *dpy; @@ -513,7 +513,7 @@ int change_image(int way) current_index = max_index; } } - if (DEBUG) + if (WMIV_DEBUG) fprintf(stderr, "current file is> %s\n", (char *)current_link->data); img = load_oriented_image(ctx, current_link->data, 0); @@ -789,7 +789,7 @@ int main(int argc, char **argv) merge_with_background(img); rescale_image(); - if (DEBUG) + if (WMIV_DEBUG) fprintf(stderr, "display size: %dx%d\n", max_width, max_height); win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 0, 0,