Commit 1a7524fa authored by Chun-wei Fan's avatar Chun-wei Fan

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.
parent 0a8882b1
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment