undefining a typedefread/previous

Stan Brown, Oak Road Systems browns at astro.pc.ab.com
Tue Aug 14 06:23:09 AEST 1990


In article <1990Aug12.130323.3503 at druid.uucp>, darcy at druid.uucp (D'Arcy J.M. Cain) writes:
> Bracket the typedef in each file as follows
> 
> #ifndef __FOO__
> #define __FOO__
> typedef int foo;
> #endif

Be careful--this is not portable.  The standard lets compilers do stuff with
symbols starting with _.

Stan Brown, Oak Road Systems, (216) 371-0043
The opinions expressed are mine. Mine alone!  Nobody else is responsible for
them or even endorses them--except my cat Dexter, and he signed the power of
attorney only under my threat to cut off his Cat Chow!



More information about the Comp.lang.c mailing list