Tom Lane writes:

> Peter Eisentraut <[EMAIL PROTECTED]> writes:
> >> ../../../src/include/c.h:997: conflicting types for `int sys_nerr'
> >> /usr/include/stdio.h:224: previous declaration as `const int sys_nerr'
>
> > C++ apparently doesn't allow this, but C does.  So you have to put #ifndef
> > __cplusplus at the appropriate place in c.h.
>
> Er, what will you ifdef exactly,

+ #ifdef __cplusplus
  #ifdef HAVE_SYS_NERR
  extern int sys_nerr;
  #endif
+ #endif

> and what are the odds that it will fail on some other platform?

I don't see how it would fail.  At least it won't add more possible
failure cases.

-- 
Peter Eisentraut      [EMAIL PROTECTED]       http://yi.org/peter-e/

Reply via email to