This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 6d16792d33 limits.h: add PTRDIFF_MAX and PTRDIFF_MIN 6d16792d33 is described below commit 6d16792d33d5c2b2a83df7e1a668183880a4a934 Author: Karel Kočí <cyn...@email.cz> AuthorDate: Wed Jan 18 15:51:53 2023 +0100 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. --- include/limits.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/limits.h b/include/limits.h index 5b7a8adf24..4e4e59312f 100644 --- a/include/limits.h +++ b/include/limits.h @@ -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 */