From 742d1ae93ed1d9bc9f8c62e3d53e90f085bfa74e Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 21 Jan 2020 12:57:19 -0600 Subject: util_edid: make buildable on glib<2.52 Not a perfect fix, but moves forward. Need to look at this more later. Signed-off-by: Burt P --- deps/sysobj_early/include/util_edid.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'deps/sysobj_early/include/util_edid.h') diff --git a/deps/sysobj_early/include/util_edid.h b/deps/sysobj_early/include/util_edid.h index 5bb4b932..a188c135 100644 --- a/deps/sysobj_early/include/util_edid.h +++ b/deps/sysobj_early/include/util_edid.h @@ -25,6 +25,11 @@ #include /* for *int*_t types */ #include +// TODO: find a better fix, I've seen a few EDID strings with bogus chars +#if !GLIB_CHECK_VERSION(2,52,0) +#define g_utf8_make_valid(S,L) g_strdup(S) +#endif + typedef struct _edid edid; typedef struct { -- cgit v1.2.3