From c64357b949c68ff54489f1e18202324e03a37f64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sat, 23 Mar 2024 02:10:52 -0400 Subject: [PATCH] include genwrap.h at the end of gen_defs.h for strlcpy()/strlcat(). This whole library is starting to get crufty and could use a room at a hackathon. --- src/xpdev/gen_defs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xpdev/gen_defs.h b/src/xpdev/gen_defs.h index 261fa9b564..109ae52e84 100644 --- a/src/xpdev/gen_defs.h +++ b/src/xpdev/gen_defs.h @@ -27,6 +27,7 @@ #include <assert.h> #endif #include <errno.h> +// Note, genwrap.h is included at the *end* of this file. /* Resolve multi-named errno constants */ #if defined(EDEADLK) && !defined(EDEADLOCK) @@ -550,4 +551,6 @@ typedef struct { #include <SDL.h> #endif +#include "genwrap.h" // For strlcpy()/strlcat() -- yes, it needs to be down here. + #endif /* Don't add anything after this #endif statement */ -- GitLab