mirror of
https://github.com/apache/nuttx.git
synced 2026-08-09 06:25:09 +00:00
sys/types.h: Fixed the conflict issue with the "OK" constant definition
When cross-compiling PSE52 VSX testcases based on Vela, VSX defines its own "OK" constant as a macro, which conflicts with the "OK" constant defined as an enum in <sys/types.h>. To ensure compatibility, we have undef'd the macro version of "OK" in advance. Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
b945c7b505
commit
54ff28a47f
1 changed files with 4 additions and 0 deletions
|
|
@ -317,6 +317,10 @@ typedef CODE int (*main_t)(int argc, FAR char *argv[]);
|
|||
|
||||
/* POSIX-like OS return values: */
|
||||
|
||||
#ifdef OK
|
||||
# undef OK
|
||||
#endif
|
||||
|
||||
enum
|
||||
{
|
||||
ERROR = -1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue