mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
libc: Change OK/ERROR macro to enum
to avoid the conflict with 3rd party c++ library(e.g. protobuf): https://github.com/protocolbuffers/protobuf/blob/fdc35840b95f56c3aef44a3fc6ae5991f21620a5/src/google/protobuf/stubs/status.h#L47 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Ie8bb9008a8375c729f8b947c9f10baa80104d157
This commit is contained in:
committed by
Alin Jerpelea
parent
6637c5a0b9
commit
bb8c4485a2
+8
-10
@@ -76,16 +76,6 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* POSIX-like OS return values: */
|
||||
|
||||
#if !defined(__cplusplus)
|
||||
# undef ERROR
|
||||
# define ERROR -1
|
||||
#endif
|
||||
|
||||
#undef OK
|
||||
#define OK 0
|
||||
|
||||
/* Scheduling Priorities.
|
||||
*
|
||||
* NOTES:
|
||||
@@ -305,6 +295,14 @@ typedef uint64_t u_int64_t;
|
||||
|
||||
typedef CODE int (*main_t)(int argc, FAR char *argv[]);
|
||||
|
||||
/* POSIX-like OS return values: */
|
||||
|
||||
enum
|
||||
{
|
||||
ERROR = -1,
|
||||
OK = 0,
|
||||
};
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user