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)