Re: iso varargs fix



Moin Moin Matthias,

> > 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).

Fixed in CVS, though by removing G_HAVE_ISO_CXX_VARARGS and
G_HAVE_ISO_C_VARARGS completely and using


	if test x$g_have_iso_c_varargs = xyes ; then
		cat >>$outfile <<_______EOF
#ifndef __cplusplus
# define G_HAVE_ISO_VARARGS 1
#endif
_______EOF
	fi
	if test x$g_have_iso_cxx_varargs = xyes ; then
		cat >>$outfile <<_______EOF
#ifdef __cplusplus
# define G_HAVE_ISO_VARARGS 1
#endif
_______EOF
	fi

in configure.in, hope this is OK with Owen.

Bye,
Sebastian
-- 
Sebastian Wilhelmi
mailto:wilhelmi ira uka de
http://goethe.ira.uka.de/~wilhelmi




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