This is an automated email from the ASF dual-hosted git repository.
ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 54ff28a47fa sys/types.h: Fixed the conflict issue with the "OK"
constant definition
54ff28a47fa is described below
commit 54ff28a47fa5fbadcd87b29b747e976fe5ba3539
Author: guoshichao <[email protected]>
AuthorDate: Thu Aug 7 14:59:11 2025 +0800
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 <[email protected]>
---
include/sys/types.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/sys/types.h b/include/sys/types.h
index 71636dd1a05..51b190ae322 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -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,