On Sun, 31 Dec 2000, Bernhard Rosenkraenzer wrote:
> ---------- Forwarded message ----------
> Date: Sun, 31 Dec 2000 18:16:58 +0100 (CET)
> From: Bernhard Rosenkraenzer <[EMAIL PROTECTED]>
> To: James Juran <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: compilation error on uuid.c
>
> On Sun, 31 Dec 2000, James Juran wrote:
>
> > I'm using Red Hat 7.0 + gcc update (yes, I know Red Hat shouldn't have
> > shipped a snapshot release of gcc).
>
> You're wrong about this, but let's argue it somewhere else. ;)
>
> The patch I've attached fixes the problem and also a couple of ISO
> C99-noncompliance warnings.
Your patch is wrong. If it is applied the Wine will not compile with
gcc 2.95 (or with the Sun C compiler for that matter):
The error you get is:
gcc -c -I. -I. -I../include -I../include -g -O2 -Wall
-mpreferred-stack-boundary=2 -fPIC -D__WINE__ -D_REENTRANT -DSTRICT
-I/usr/X11R6/include -o uuid.o uuid.c
In file included from ../include/objbase.h:16,
from uuid.c:16:
../include/wine/obj_moniker.h:313: parse error before
`GetObject_must_be_suffixed_with_W_or_A_in_this_context'
../include/wine/obj_moniker.h:313: warning: no semicolon at end of
struct or union
../include/wine/obj_moniker.h:313: parse error before `}'
And the code that generates it is:
HRESULT __attribute__((__stdcall__)) (*
fnGetObject_must_be_suffixed_with_W_or_A_in_this_context
GetObject_must_be_suffixed_with_W_or_A_in_this_context
)(IRunningObjectTable * me, IMoniker* a, IUnknown** b);
If you don't write '##xfn' then xfn is epanded before being
passed to ICOM_FN. And that's wrong. Just see for yourself.
If the latest gcc won't allow this then the only solution is to undo
my last patch. Damnit, that would be a shame!
--
Francois Gouget [EMAIL PROTECTED] http://fgouget.free.fr/
It really galls me that most of the computer power in the world
is wasted on screen savers.
Chris Caldwell from the GIMPS project
http://www.mersenne.org/prime.htm