summaryrefslogtreecommitdiff
path: root/src/setup.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2015-08-29 16:20:11 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2015-08-29 16:20:11 +0200
commitb57363dbf58c275a7684281022db376ed412601b (patch)
treeb0c3da758db87ee1e4633e1e8c01cd37ae4640d7 /src/setup.h
parent5879c2a9aa8daf148d6ef7694f5e959c5207f40f (diff)
downloadcataract-b57363dbf58c275a7684281022db376ed412601b.tar.xz
setup: Fix setup files version check
Logical issue, found by a gcc-5.2.0 warning.
Diffstat (limited to 'src/setup.h')
-rw-r--r--src/setup.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/setup.h b/src/setup.h
index d34906d..9459043 100644
--- a/src/setup.h
+++ b/src/setup.h
@@ -134,9 +134,9 @@ struct TGalleryDesign {
};
-#define SETUP_IS_LEGACY(s) s->version < SETUP_NATIVE_VERSION
-#define SETUP_IS_NATIVE(s) s->version == SETUP_NATIVE_VERSION
-#define SETUP_IS_NEWER(s) s->version > SETUP_NATIVE_VERSION
+#define SETUP_IS_LEGACY(s) (s->version < SETUP_NATIVE_VERSION)
+#define SETUP_IS_NATIVE(s) (s->version == SETUP_NATIVE_VERSION)
+#define SETUP_IS_NEWER(s) (s->version > SETUP_NATIVE_VERSION)
/*
* find_setup_xml: try to find setup.xml in standard paths