Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2002:
[Freeciv-Dev] Re: compile errors on bitvector code with Sun cc (PR#2046)
Home

[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]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: compile errors on bitvector code with Sun cc (PR#2046)
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Fri, 27 Sep 2002 09:01:36 -0700 (PDT)

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.





[Prev in Thread] Current Thread [Next in Thread]