mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
limits.h: Map _POSIX_[S]SIZE_M[AX|IN] to [U]LONG_M[AX|IN]
correct SIZE_MAX and SSIZE_MAX/SSIZE_MIN definition Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
4f30c298bf
commit
6920fffb00
+3
-3
@@ -136,11 +136,11 @@
|
||||
|
||||
#else /* CONFIG_SMALL_MEMORY */
|
||||
|
||||
#define _POSIX_SIZE_MAX 4294967295UL /* See sys/types.h */
|
||||
#define _POSIX_SIZE_MAX ULONG_MAX
|
||||
#define _POSIX_SIZE_MIN 0
|
||||
|
||||
#define _POSIX_SSIZE_MAX 2147483647L /* See sys/types.h */
|
||||
#define _POSIX_SSIZE_MIN -2147483648L
|
||||
#define _POSIX_SSIZE_MAX LONG_MAX
|
||||
#define _POSIX_SSIZE_MIN LONG_MIN
|
||||
|
||||
#endif /* CONFIG_SMALL_MEMORY */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user