#include "googlesearch.h"
+/* Compatibility */
+#if ! GLIB_CHECK_VERSION(2,22,0)
+#define g_mapped_file_unref g_mapped_file_free
+#endif
+
#define GOOGLE_GOTO_URL_FMT "http://maps.google.com/maps?q=%s&output=js"
#define GOOGLE_GOTO_PATTERN_1 "{center:{lat:"
#define GOOGLE_GOTO_PATTERN_2 ",lng:"
ll->lon = g_ascii_strtod(lon_buf, NULL);
done:
- g_mapped_file_free(mf);
+ g_mapped_file_unref(mf);
return (found);
}