summaryrefslogtreecommitdiff
path: root/lib/strlcat.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-02-21 05:48:48 +0100
committerDavid Lamparter <equinox@diac24.net>2021-03-17 06:18:17 +0100
commit15c05f1edf079bc03b277e44426a8af8616bb10b (patch)
tree07eba7a6ffc9e4c1caaabbb572632bd921082dc6 /lib/strlcat.c
parent247c7e27a9928bd54e336590c526da68d4c79ff1 (diff)
*: require ISO C11 (or C++11)
It's 2021... time to drop some 10yo compat stuff. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/strlcat.c')
-rw-r--r--lib/strlcat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/strlcat.c b/lib/strlcat.c
index 39773d9ac8..a046822a94 100644
--- a/lib/strlcat.c
+++ b/lib/strlcat.c
@@ -64,10 +64,8 @@ size_t strlcat(char *__restrict dest,
(which the static_assert checks), then by the pigeonhole
principle, the two input strings must overlap, which is
undefined. */
-#if __STDC_VERSION__ >= 201112L
_Static_assert(sizeof(uintptr_t) == sizeof(size_t),
"theoretical maximum object size covers address space");
-#endif
return dest_length + src_length;
}
#endif /* HAVE_STRLCAT */