[libbluray-devel] [PATCH[ Compiler happynessm for functions

hpi hpi.libbluray at gmail.com
Tue Mar 29 13:53:48 CEST 2011


Erik Van Grunderbeeck wrote:
> Looking at this again, not sure on how to solve it except by
> duplicating the whole DLOPEN macro. ## is a specific gcc C99 extension
> to solve the empty argument issue. The microsoft and intel compiler
> just drop the last comma on macro expansion.
>
> I checked the code, and it seems that DLOPEN is never called without
> an argument and thus only using # (and not ##) should work fine. 
>
> Thoughts?

Just drop ",params" from macro definition and use C99 __VA_ARGS__ ?

 #    define DL_CALL(lib,func,...)
...
             fptr(__VA_ARGS__);           \




More information about the libbluray-devel mailing list