From 0ec76e53cdb0b15da1dd14bb1c53134dc1f3a55b Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Thu, 21 Jun 2012 14:50:40 +0100 Subject: some changes and hacks to get GeoIP on Windows --- src/util.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 3309fb1..6aa1d43 100644 --- a/src/util.c +++ b/src/util.c @@ -19,6 +19,10 @@ /* Many of these functions are taken from the Transmission Project. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include @@ -608,3 +612,13 @@ GtkWidget *trg_vbox_new(gboolean homogeneous, gint spacing) #endif return box; } + +#ifdef WIN32 +gchar *trg_win32_support_path(gchar *file) { + gchar *moddir = + g_win32_get_package_installation_directory_of_module(NULL); + gchar *path = g_build_filename(moddir, file, NULL); + g_free(moddir); + return path; +} +#endif \ No newline at end of file -- cgit v1.2.3