Fix incorrect check for iPhone macro in hwconsts.h
authorWuzzy <Wuzzy2@mail.ru>
Thu, 19 Apr 2018 15:48:00 +0200
changeset 13344 450e37b2b4d4
parent 13343 0b12b0d0d12c
child 13345 85644a45e988
Fix incorrect check for iPhone macro in hwconsts.h TARGET_OS_IPHONE is always defined when building on Mac OS, so the define was wrong. This macro expands to either 0 or 1, so a simple #if should be enough.
QTfrontend/hwconsts.h
--- a/QTfrontend/hwconsts.h	Thu Apr 19 14:07:56 2018 +0200
+++ b/QTfrontend/hwconsts.h	Thu Apr 19 15:48:00 2018 +0200
@@ -16,7 +16,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#if !defined(TARGET_OS_IPHONE)
+#if !(TARGET_OS_IPHONE)
 #include <QString>
 #include <QDir>
 #include <QStringList>