[Gimp-developer] Trouble with GIMP_LOG
Hans Breuer
hans at breuer.org
Sun Nov 18 04:29:01 PST 2007
The recently added GIMP_LOG macro does not compile on win32/msvc6.
D:\devel\from-svn\gimp\app>nmake -nologo -f makefile.msc sub-one THIS=display
[...]
..\../app\gimp-log.h(31) : error C2010: '.' : unexpected in macro formal
parameter list
[...]
gimpdisplayshell-callbacks.c(671) : error C4002: too many actual parameters
for macro 'GIMP_LOG'
This is due to the use of variadic macros [1]. Also it seems the
macro code is not correct, due to the lack of __VA_ARGS__ usage
in the macro definition.
It would be nice if the GIMP_LOG facility could be modified to follow the
pattern given by GDK_NOTE [2] to not exclude all pre-C99 compilers.
Thanks,
Hans
[1] http://en.wikipedia.org/wiki/Variadic_macro
[2] http://svn.gnome.org/viewvc/gtk%2B/trunk/gtk/gtkdebug.h?view=markup
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
More information about the Gimp-developer
mailing list