[Freeciv-Dev] Re: compile errors on bitvector code with Sun cc (PR#2046)
[Top] [All Lists]
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
On Fri, 27 Sep 2002, Jason Short wrote:
> The aitools.h problem is much bigger, and probably comes up in many 
> places in the code.  Does anyone know how this can be avoided?  Is there 
> a more "proper" way to do variable-argument macros, or is that just 
> impossible in Sun CC?
I don't know anything about it but I notice that freelog (common/log.h) is 
implemented as a function rather than macro for non-gnu compilers, with 
the comment:
/* For GCC we use a variadic macro; for others we take
   the performance hit of a function to get variadic args:
 */
Best,
G.
 
 
 
 | 
 |