From 04af1a1e98bceb319d3bbf9858e0c8fda5bd23e3 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sat, 12 Jul 2025 22:07:44 +0200 Subject: [PATCH] Put header includes inside ifdef guard --- libretro-common/compat/compat_strl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libretro-common/compat/compat_strl.c b/libretro-common/compat/compat_strl.c index d11a8c6699..cdf7c49cbe 100644 --- a/libretro-common/compat/compat_strl.c +++ b/libretro-common/compat/compat_strl.c @@ -20,14 +20,14 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/* Implementation of strlcpy()/strlcat() based on OpenBSD. */ + +#ifndef __MACH__ #include #include #include -/* Implementation of strlcpy()/strlcat() based on OpenBSD. */ - -#ifndef __MACH__ size_t strlcpy(char *s, const char *source, size_t len) { size_t _len = len; @@ -52,4 +52,4 @@ size_t strlcat(char *s, const char *source, size_t len) len -= _len; return _len + strlcpy(s, source, len); } -#endif +#endif \ No newline at end of file