limits.h: add PTRDIFF_MAX and PTRDIFF_MIN

ptrdiff_t is defined as intptr_t that is defined as _ssize_t in Nuttx.
The real size depends on architecture and the PTR_MAX and PTR_MIN is
specified by it.
This commit is contained in:
Karel Kočí 2023-01-18 15:51:53 +01:00 committed by Xiang Xiao
parent c3a34a5956
commit 6d16792d33

View File

@ -309,4 +309,9 @@
#define HOST_NAME_MAX 32
/* ptrdiff_t limits */
#define PTRDIFF_MAX PTR_MAX
#define PTRDIFF_MIN PTR_MIN
#endif /* __INCLUDE_LIMITS_H */