Jens Hamisch <jens@Strawberry.COM> writes: > >I started from APC 7680. The asserts were already defined. I guessed as much. > > >> I dislike the >> >> ! #if defined(sun) && !defined(_LP64) >> >> even more ! >> >> Sun in _LP64 mode should be handled by the Configure stuff - as I understand >> it in _LP64 mode FILE * is opaque - and so FILE_ptr et. al. should >> not be defined at all. >> >> What the patch is attempting to do is handle the fact that Configure >> has mis-guessed STDCHAR because FILE is defined under another name >> in file other than <stdio.h>. It would be better handled >> with a hints file that set STDCHAR > > > >Solaris 8 defines the FILE type in /usr/include/stdio_impl.h as follows: Solaris 7 is similar. > > >so we have a full structure defined in 32 bit mode And hence can have FILE_ptr() et. al. >and some paddings >in 64 bit mode. and hence no "fast" access to stdio. > >So _ptr should be (unsigned char *) on a sun system unless _LP64 is defined ?!?! Quite. But chasing off into <stdio_impl.h> and looking for struct __FILE_TAG may be the wrong thing for Configure to do - it might be easier for hints/solaris_2.sh to just provide the answers. -- Nick Ing-SimmonsThread Previous | Thread Next