summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorŁukasz Matysiak <lukasz.matysiak@qt.io>2023-07-21 14:32:00 +0200
committerŁukasz Matysiak <lukasz.matysiak@qt.io>2023-08-31 22:30:35 +0000
commitbe46e8f3355accc128ab6007977d86a76c3d953f (patch)
tree7c66bd78cb04bf0e910e1a58edea4a54c8a21699
parenta7d7634f1bfd3311ea56120726496bb18856ed6c (diff)
undef READ and WRITE on VxWorks
On VxWorks READ is defined as 0 and WRITE as 1 this causes issues with moc and Q_PROPERTY that are manifested as parse errors Task-number: QTBUG-115777 Change-Id: I9ea971507fa30390affb8b6865bfde04e8fd5a7d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--mkspecs/common/vxworks/qplatformdefs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mkspecs/common/vxworks/qplatformdefs.h b/mkspecs/common/vxworks/qplatformdefs.h
index 0679f72968..28f4e8b436 100644
--- a/mkspecs/common/vxworks/qplatformdefs.h
+++ b/mkspecs/common/vxworks/qplatformdefs.h
@@ -36,6 +36,13 @@
#define S_ISVTX 01000
+/*
+ * vxworks introduces some defines that replace READ with 0 and WRITE with 1
+ * this causes issues with moc and Q_PROPERTY
+ */
+#undef READ
+#undef WRITE
+
/* vxworks exposes these definitions only when _POSIX_C_SOURCE >=200809L but we don't want to set this, as it hides other API */
#ifndef UTIME_NOW
# define UTIME_NOW ((1l << 30) - 1l)