From be46e8f3355accc128ab6007977d86a76c3d953f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Matysiak?= Date: Fri, 21 Jul 2023 14:32:00 +0200 Subject: [PATCH] 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 --- mkspecs/common/vxworks/qplatformdefs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mkspecs/common/vxworks/qplatformdefs.h b/mkspecs/common/vxworks/qplatformdefs.h index 0679f729681..28f4e8b436d 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)