diff options
author | Burt P <pburt0@gmail.com> | 2020-01-21 12:57:19 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2020-01-22 16:46:19 -0800 |
commit | 742d1ae93ed1d9bc9f8c62e3d53e90f085bfa74e (patch) | |
tree | 1e74507e1153a26769d9d6d0fcf0f9166d1c10f3 /deps/sysobj_early | |
parent | 1cc8cc4623331c5ca83ff5a20e23265af7a5e4de (diff) |
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 <pburt0@gmail.com>
Diffstat (limited to 'deps/sysobj_early')
-rw-r--r-- | deps/sysobj_early/include/util_edid.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdint.h> /* for *int*_t types */ #include <glib.h> +// 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 { |