bug-gnulib  

Re: build failures: string.h vs. HP-UX

Jim Meyering
Sun, 28 Jan 2007 23:08:35 -0800

Paul Eggert <[EMAIL PROTECTED]> wrote:
> Jim Meyering <[EMAIL PROTECTED]> writes:
>
>>      Avoid a compile error from HP-UX's ia64 cc: s/__restrict\>/restrict/
>>      * lib/regex.h: Use "restrict", not "__restrict", since only the
>>      former works with 'config.h's "#define restrict ...".
>>      Problem reported by Bob Proulx.
>
> Arg, these crossed in the mail.  Well, I went the other way and came
> up with a patch that should be acceptable to glibc, if we can ever get
> past the current hitch in that area.  I'm willing to keep trying with
> glibc, at least for a bit longer; as far as gnulib itself is concerned
> it should work either way.

Either way is fine with me.
If you're serious about merging back to glibc, it'll help
(name space cleanliness) to add the "__" prefix: i.e., change
your Restrict to __Restrict.