Trouble with GIMP_LOG

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

 



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
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux