commit | c2bc818706df56022c8bb922df2b741cb120f7e4 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Sun Oct 27 23:36:35 2013 +0100 |
committer | Behdad Esfahbod <behdad@behdad.org> | Sun Oct 27 23:37:14 2013 +0100 |
tree | bb139887387ddfb8b3a2158f41321f35d1298274 | |
parent | 46a863d91dbcc9a4c796e3715ea3828939f4d941 [diff] [blame] |
Work with old and new glib Avoids "deprecated" warnings.
diff --git a/util/options.hh b/util/options.hh index 075bf8c..e32f9c9 100644 --- a/util/options.hh +++ b/util/options.hh
@@ -54,6 +54,10 @@ #include <glib.h> #include <glib/gprintf.h> +#if !GLIB_CHECK_VERSION (2, 22, 0) +# define g_mapped_file_unref g_mapped_file_free +#endif + #undef MIN template <typename Type> static inline Type MIN (const Type &a, const Type &b) { return a < b ? a : b; }