libc: Change OK/ERROR macro to enum
to avoid the conflict with 3rd party c++ library(e.g. protobuf):
fdc35840b9/src/google/protobuf/stubs/status.h (L47)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie8bb9008a8375c729f8b947c9f10baa80104d157
This commit is contained in:
parent
6637c5a0b9
commit
bb8c4485a2
@ -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__ */
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user