[runtime] g_string_append_vprintf can be used with eglib as well
authorMarek Habersack <grendel@twistedcode.net>
Tue, 12 Apr 2011 14:30:54 +0000 (16:30 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Tue, 12 Apr 2011 14:32:39 +0000 (16:32 +0200)
mono/utils/mono-io-portability.c

index 20cc96ba46ca35644f8abb920eb15bb7f6db3c85..bd43d63b2105aefb4bc8fbc8b42e361eb6edee5b 100644 (file)
@@ -113,7 +113,7 @@ static gchar *find_in_dir (DIR *current, const gchar *name)
 
 static inline void append_report (GString **report, const gchar *format, ...)
 {
-#if GLIB_CHECK_VERSION(2,14,0)
+#if defined (_EGLIB_MAJOR) || GLIB_CHECK_VERSION(2,14,0)
        va_list ap;
        if (!*report)
                *report = g_string_new ("");