[comp.lang.c] undefining a typedefread/previous

browns@astro.pc.ab.com (Stan Brown, Oak Road Systems) (08/14/90)

In article <1990Aug12.130323.3503@druid.uucp>, darcy@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!