From d35de0a5bc363f171f3791c4d4c4ddce204eefcb Mon Sep 17 00:00:00 2001 From: Aaron Blakely Date: Mon, 20 Nov 2023 20:26:11 -0600 Subject: [PATCH] fix issue --- include/util.h | 2 ++ src/util.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/util.h b/include/util.h index 9b81e92..7388cde 100644 --- a/include/util.h +++ b/include/util.h @@ -9,9 +9,11 @@ #ifdef __STDC_VERSION__ #if __STDC_VERSION >= 199901L +#ifdef __USE_XOPEN2K void strlcpy(char *to, const char *from, int len); #endif #endif +#endif int numPlaces(int n); float ctof(float c); diff --git a/src/util.c b/src/util.c index 198c800..031f860 100644 --- a/src/util.c +++ b/src/util.c @@ -16,6 +16,7 @@ #ifdef __STDC_VERSION__ #if __STDC_VERSION >= 199901L +#ifdef __USE_XOPEN2K void strlcpy(char *to, const char *from, int len) { memccpy(to, from, '\0', len); @@ -23,6 +24,7 @@ void strlcpy(char *to, const char *from, int len) } #endif #endif +#endif int numPlaces(int n) {