mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 13:08:26 +00:00
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
4574d83d0c
commit
cf41dee0f6
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue