diff --git a/include/sys/types.h b/include/sys/types.h index 4bc7b97045a..ea46899c236 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -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__ */ /****************************************************************************