too strict for Solaris (snapshot 1999-01-03)

Lavoie Philippe
Fri Jan 8 15:08:00 GMT 1999


It seems the latest snapshot is too stric for Solaris. The Xlib.h
include files are badly written and egcs says it's illegal C++. I do
agree with egcs, but unfortunately I can't change the Xlib.h files.

Example of bad code...

extern XSetTransientForHint(
#if NeedFunctionPrototypes
    Display*		/* display */,
    Window		/* w */,
    Window		/* prop_window */

/usr/openwin/include/X11/Xlib.h:1894: ANSI C++ forbids declaration `XSetTransientForHint' with no type

Is there a way around this limitation ?

I did a quick read of the info files for gcc and didn't find a
compiler option to enable (assume int on typeless declarations).


PS I didn't subscribe to the list, please forward me a copy of your
answer. Thanks.

More information about the Gcc-bugs mailing list