replace confusing #if checking for GlIB2.6.0 by #if GLIB_CHECK_VERSION(2,6,0)

svn path=/trunk/; revision=24855
This commit is contained in:
Ulf Lamping 2008-04-09 04:57:47 +00:00
parent 22045b4a54
commit 151c5b47b5
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg,
case 'w': /* Write to capture file x */
capture_opts->saving_to_file = TRUE;
g_free(capture_opts->save_file);
#if defined _WIN32 && (GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 6))
#if defined _WIN32 && GLIB_CHECK_VERSION(2,6,0)
/* since GLib 2.6, we need to convert filenames to utf8 for Win32 */
capture_opts->save_file = g_locale_to_utf8(optarg, -1, NULL, NULL, NULL);
#else