aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets/qcustomplot.cpp
diff options
context:
space:
mode:
authorJim Young <jyoung@gsu.edu>2017-08-30 23:38:05 -0400
committerStig Bjørlykke <stig@bjorlykke.org>2017-08-31 06:29:25 +0000
commit6f28f1a59e143fc94ea1bc4d46dc9818e0d16e14 (patch)
tree3345b9231917633d4be0ba788b829fe980f8484f /ui/qt/widgets/qcustomplot.cpp
parent588590c539b5660e71660645305cb639cb35dc92 (diff)
Fix MacOS build
Commit 8d13f14f958b9ee00b59fd869bd1630f76e6fa65 introduced a preprocessor buglet affecting MacOS builds. Change #if to #ifdef. Change-Id: I3d76c83428658abcf382e18066be0e24309ecbba Reviewed-on: https://code.wireshark.org/review/23317 Petri-Dish: Jim Young <jim.young.ws@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jim Young <jim.young.ws@gmail.com>
Diffstat (limited to 'ui/qt/widgets/qcustomplot.cpp')
-rw-r--r--ui/qt/widgets/qcustomplot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/widgets/qcustomplot.cpp b/ui/qt/widgets/qcustomplot.cpp
index c9fbffc9bd..2a3ee3bc91 100644
--- a/ui/qt/widgets/qcustomplot.cpp
+++ b/ui/qt/widgets/qcustomplot.cpp
@@ -29,7 +29,7 @@
// Set to nonzero to use device pixel scaling. Uncommenting the debug rects
// at the bottom of QCPAxisPainterPrivate::draw can be helpful for testing.
-#if Q_OS_MAC
+#ifdef Q_OS_MAC
#define WS_ENABLE_DP_RATIO 1
#else
#define WS_ENABLE_DP_RATIO 0