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:
Xiang Xiao 2021-07-29 01:41:10 +08:00 committed by Gustavo Henrique Nihei
parent 307cc61893
commit 545a93301b

View File

@ -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.