[gdk-pixbuf] gdk-pixbuf/queryloaders.c: Avoid C99ism
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] gdk-pixbuf/queryloaders.c: Avoid C99ism
- Date: Fri, 25 May 2018 09:19:59 +0000 (UTC)
commit 1a7524fa49ca07a861285187e4fe952590a2e7e8
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri May 25 17:02:53 2018 +0800
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.
gdk-pixbuf/queryloaders.c | 10 ++++++----
1 file 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]