Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c++ Subject: Re: Making AT&T C++ for Sun [34] Message-ID: <11644@mimsy.UUCP> Date: 24 May 88 16:17:55 GMT References: <1231@ektools.UUCP> <3824@diku.dk> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 32 In article <3824@diku.dk> seindal@diku.dk (Rene' Seindal) writes: >... It is actually an error in [the C++] stdio.h. The beginning of >the definition of _iobuf in my stdio.h look like this: >#if vax || u3b || u3b2 || u3b5 || mc68k || sparc || mc68020 || mc68010 > int _cnt; > char *_ptr; >#else > char *_ptr; > int _cnt; >#endif >It annoys me a bit that the test is on the cpu type .... The real problem is that C++ has a separate . This is (or should be) entirely unnecessary, but to get rid of it may require some co-operation from your vendor: % cat -n /usr/include/stdio.h | sed -e '77,81p;131,135p;d' 77 #if defined(__STDC__) || defined(c_plusplus) 78 79 /* these are sorted to match /usr/lib/lint/llib-lc */ 80 extern int fclose(FILE *stream); 81 extern FILE *fdopen(int fd, const char *type); 131 132 #else /* __STDC__ || c_plusplus */ 133 134 int fclose(); 135 FILE *fdopen(); -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris