diff --git a/source/build/include/compat.h b/source/build/include/compat.h index 8a3c382b6..d4501a909 100644 --- a/source/build/include/compat.h +++ b/source/build/include/compat.h @@ -359,17 +359,6 @@ typedef ssize_t bssize_t; typedef FILE BFILE; -#ifndef O_BINARY -# define O_BINARY 0 -#endif -#ifndef O_TEXT -# define O_TEXT 0 -#endif - -#ifndef F_OK -# define F_OK 0 -#endif - #define BO_BINARY O_BINARY #define BO_TEXT O_TEXT #define BO_RDONLY O_RDONLY @@ -568,6 +557,17 @@ static FORCE_INLINE int32_t Blrintf(const float x) # define strtoll _strtoi64 #endif +#ifndef O_BINARY +# define O_BINARY 0 +#endif +#ifndef O_TEXT +# define O_TEXT 0 +#endif + +#ifndef F_OK +# define F_OK 0 +#endif + #ifdef GEKKO # undef PRIdPTR # define PRIdPTR "d"