[comp.lang.perl] perl 4.0 and __STDC__

vinoski@apollo.HP.COM (Stephen Vinoski) (03/22/91)

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       |