glib/gmessages.h on platforms without ISO/GNU varargs

The Sun C compiler on Solaris 2.5.1 does not support ISO/GNU varargs.
Therefore, when <glib/gmessages.h> is pulled in from <glib.h>, it
forces the caller to link in -lglib for g_logv() because:
  #else   /* no varargs macros */
  static void
  g_error (const gchar *format,
    va_list args;
    va_start (args, format);
    g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
    va_end (args);

Is there a reason we don't list only the function prototypes and move
the functions to gmessages.c?

albert chin (china thewrittenword com)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]