Try adding `#include <stdint.h>' (or inttypes.h) to common.c.  My
reading of
http://www.opengroup.org/onlinepubs/000095399/basedefs/stdint.h.html
is that WCHAR_MAX should be defined in stdint.h; so if adding this
#include line isn't enough to fix the problem, then I think you can file
a bug report against OpenBSD's stdint.h file.

As a workaround if stdint.h isn't enough, you can try

  find /usr/include -name '*.h' -type f -print | xargs grep WCHAR_MAX

to see if it's defined somewhere else.

If all else fails, add the following to common.c, after all the #include
lines:

  #ifndef WCHAR_MAX
  # define WCHAR_MAX 0x7fffffff
  #endif

Note that max_val is of type int.  The above assumes that wchar_t and
int are both at least 32 bits.

I suggest you write back to let the fish maintainers know the solution,
so that it can be incorporated into subsequent versions of fish (so that
you and others don't need to make the same change each time).

pjrm.  (Not subscribed to fish-users.)


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to