summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2018-05-25 17:02:53 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2018-05-25 17:02:53 +0800
commit1a7524fa49ca07a861285187e4fe952590a2e7e8 (patch)
treeb5f5ee004ba57b08ff88642f7675ce300fa2e74d
parent0a8882b1a1f5234f7de2177e41f9cb584b6d61f8 (diff)
downloadgdk-pixbuf-1a7524fa49ca07a861285187e4fe952590a2e7e8.tar.gz
gdk-pixbuf/queryloaders.c: Avoid C99ism
Since we are still in a stable release series, ensure that the code still builds on pre-C99 compilers.
-rw-r--r--gdk-pixbuf/queryloaders.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c
index 7728caf4b..312aa7890 100644
--- a/gdk-pixbuf/queryloaders.c
+++ b/gdk-pixbuf/queryloaders.c
@@ -315,6 +315,12 @@ int main (int argc, char **argv)
GFile *pixbuf_libdir_file;
gchar *pixbuf_libdir;
+#ifdef G_OS_WIN32
+ gchar *libdir;
+ GFile *pixbuf_prefix_file;
+ gchar *pixbuf_prefix;
+#endif
+
/* An intermediate GFile here will convert all the path separators
* to the right one used by the platform
*/
@@ -323,10 +329,6 @@ int main (int argc, char **argv)
g_object_unref (pixbuf_libdir_file);
#ifdef G_OS_WIN32
- gchar *libdir;
- GFile *pixbuf_prefix_file;
- gchar *pixbuf_prefix;
-
pixbuf_prefix_file = g_file_new_for_path (GDK_PIXBUF_PREFIX);
pixbuf_prefix = g_file_get_path (pixbuf_prefix_file);
g_object_unref (pixbuf_prefix_file);