fs: Don't define UTIME_OMIT if __cplusplus is defined
to avoid libcxx misdetect NuttX support utimensat(_LIBCPP_USE_UTIMENSAT). This patch need be reverted after utimensat is supported in NuttX. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
307cc61893
commit
545a93301b
@ -110,7 +110,9 @@
|
||||
/* Special value for tv_nsec field of timespec */
|
||||
|
||||
#define UTIME_NOW ((1l << 30) - 1l)
|
||||
#define UTIME_OMIT ((1l << 30) - 2l)
|
||||
#ifndef __cplusplus
|
||||
# define UTIME_OMIT ((1l << 30) - 2l)
|
||||
#endif
|
||||
|
||||
/* The following macros are required by POSIX to achieve backward
|
||||
* compatibility with earlier versions of struct stat.
|
||||
|
Loading…
Reference in New Issue
Block a user