Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Bug 558458 – Cannot build gio tests on Solaris using SUN cc
Browse files Browse the repository at this point in the history
        * tests/live-g-file.c: Support compilers that don't understand
        ISO C varargs macros. Patch by Eric Lamarque


svn path=/branches/glib-2-18/; revision=7787
  • Loading branch information
Matthias Clasen committed Jan 9, 2009
1 parent 16bde96 commit b056ba8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gio/ChangeLog
@@ -1,3 +1,12 @@
2009-01-09 Matthias Clasen <mclasen@redhat.com>

Merged from trunk:

Bug 558458 – Cannot build gio tests on Solaris using SUN cc

* tests/live-g-file.c: Support compilers that don't understand
ISO C varargs macros. Patch by Eric Lamarque

2009-01-09 Matthias Clasen <mclasen@redhat.com>

Merged from trunk:
Expand Down
14 changes: 14 additions & 0 deletions gio/tests/live-g-file.c
Expand Up @@ -104,7 +104,21 @@ static gboolean write_test;
static gboolean verbose;
static gboolean posix_compat;

#ifdef G_HAVE_ISO_VARARGS
#define log(...) if (verbose) g_print (__VA_ARGS__)
#elif defined(G_HAVE_GNUC_VARARGS)
#define log(msg...) if (verbose) g_print (msg)
#else /* no varargs macros */
static void
log (const g_char *format,
...)
{
va_list args;
va_start (args, format);
if (verbose) g_print (format, args);
va_end (args);
}
#endif

static GFile *
create_empty_file (GFile * parent, const char *filename,
Expand Down

0 comments on commit b056ba8

Please sign in to comment.