On Sun, 2007-11-18 at 13:29 +0100, Hans Breuer wrote:
> 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 . 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  to not exclude all pre-C99 compilers.
Nope, GDK_NOTE() is ugly ;) I changed it to how g_message() and
friends do it. Can you check if this compiles fine now?
Gimp-developer mailing list