On Mon, Jan 4, 2010 at 8:58 PM, James Cheng <James.Cheng at sun.com> wrote:
> Hi Ben,
>
> Thanks for pointing it out. ?Indeed mlib_types.h has a problem at
> the #elif clause. ?According to man page cc(1), __STDC__ is defined
> as zero only when -Xa (default) or -Xt is used. ?I guess that you
> might be using either -Xc or -Xs with cc.
>
> While your workaround may work for you, the following change for
> mlib_types.h might be a simpler one:
>
> // #elif (__STDC__ - 0 == 0) || defined(__GNUC__) || defined(__ICC)
> #else
>
> Or if you could, you may try to use cc -Xa or cc without -X.

Those flag options will not work for me given the nature of the code.

Is this something I should be opening a bug on to get fixed, and if
so, what category?

In the meantime, I am defining the two structures locally that would
be causing the failure, since I cannot suggest to other folks that
they hack up their mlib_types.h file (since the code I'm working
on is for public consumption).

Regards

Ben

Reply via email to