undefining a typedef
D'Arcy J.M. Cain
darcy at druid.uucp
Sun Aug 12 23:03:23 AEST 1990
In article <1820006 at hpsad.HP.COM> jose at hpsad.HP.COM (Jose Gomez-Rubio (SEED Student)) writes:
>How does one undefine a typedef construction in a header file?
>
>The problem is that a specific typedef construction is declared
>unconditionally in 3 separate header files in a source file that includes
>those 3 specific header files.
>
Bracket the typedef in each file as follows
#ifndef __FOO__
#define __FOO__
typedef int foo;
#endif
--
D'Arcy J.M. Cain (darcy at druid) |
D'Arcy Cain Consulting | MS-DOS: The Andrew Dice Clay
West Hill, Ontario, Canada | of operating systems.
+ 416 281 6094 |
More information about the Comp.lang.c
mailing list