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>
This commit is contained in:
Łukasz Matysiak 2023-07-21 14:32:00 +02:00
parent a7d7634f1b
commit be46e8f335

View File

@ -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)