From: Kevin Day Date: Sun, 21 Jul 2019 21:04:35 +0000 (-0500) Subject: Update: disable BUG_strnlen by default X-Git-Tag: 0.5.0~517 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=aa5a6d672fb98c032e1fa1c9a8982cd6cf60e713;p=fll Update: disable BUG_strnlen by default This bug might actually be a bug related to uClibc. Just disable it by default for now. Future versions may remove this workaound entirely. --- diff --git a/level_0/f_strings/c/strings.h b/level_0/f_strings/c/strings.h index f4df772..a9d4c64 100644 --- a/level_0/f_strings/c/strings.h +++ b/level_0/f_strings/c/strings.h @@ -24,9 +24,9 @@ extern "C" { // BUG: for whatever reason strnlen is considered not included with -Wall, even with __USE_GNU defined // therefore this gets defined here -#ifndef _di_BUG_strnlen_ +#ifdef _en_BUG_strnlen_ f_extern size_t strnlen (f_const char *string, size_t max_length); -#endif // _di_BUG_strnlen_ +#endif // _en_BUG_strnlen_ // Define the end of string character #ifndef _di_f_have_eos_