Re: iso varargs fix



Hi,

> Any objections to changing it to
>
> #if (defined(__cplusplus) ? defined(G_HAVE_ISO_CXX_VARARGS) : \
>                             defined(G_HAVE_ISO_C_VARARGS))
> # define G_HAVE_ISO_VARARGS 1
> #endif

This does not work for me (presumably because cpp doesn't handle ? : ).
Replacing it with the more cumbersome

#ifdef __cplusplus
#ifdef G_HAVE_ISO_CXX_VARARGS
#define G_HAVE_ISO_VARARGS 1
#endif
#else
#ifdef G_HAVE_ISO_C_VARARGS
#define G_HAVE_ISO_VARARGS 1
#endif
#endif

does work though (at least it allows me to build the pango-viewer
successfully).

Matthias





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