[libc-commits] [PATCH] D156961: [libc] Add limits.h
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Aug 7 16:05:32 PDT 2023
sivachandra added inline comments.
================
Comment at: libc/include/llvm-libc-macros/limits-macros.h:14
+
+#define LONG_MAX __LONG_MAX
+#define SSIZE_MAX LONG_MAX
----------------
Considering `LONG_MAX` is already defined in the freestanding `limits.h`, may be all you need is:
```
#define SSIZE_MAX __LONG_MAX__
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156961/new/
https://reviews.llvm.org/D156961
More information about the libc-commits
mailing list