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:
parent
c3a34a5956
commit
6d16792d33
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user