Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!apollo!vinoski From: vinoski@apollo.HP.COM (Stephen Vinoski) Newsgroups: comp.lang.perl Subject: perl 4.0 and __STDC__ Message-ID: <508110b0.20b6d@apollo.HP.COM> Date: 21 Mar 91 22:18 GMT Sender: root@apollo.HP.COM Organization: Hewlett-Packard Apollo Division - Chelmsford, MA Lines: 23 A couple of perl 4.0 ANSI C problems on Apollo DN3500 running Domain/OS sr10.3 and using cc 6.8: 1) My ANSI C compiler didn't like the fact that "extern char **environ" was surrounded by "#ifdef __STDC__" in several perl 4.0 source files, namely doarg.c perl.c str.c util.c They compiled fine once I removed the #ifdef. 2) The declarations for malloc(), free(), and realloc() in malloc.c do not match the ANSI C function prototypes. I fixed this with #ifdef. -steve | Steve Vinoski (508)256-0176 x5904 | Internet: vinoski@apollo.hp.com | | HP Apollo Division, Chelmsford, MA 01824 | UUCP: ...!apollo!vinoski | | "The price of knowledge is learning how little of it you yourself harbor." | | - Tom Christiansen |