Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!hybrid!robohack!druid!darcy From: darcy@druid.uucp (D'Arcy J.M. Cain) Newsgroups: comp.lang.c Subject: Re: undefining a typedef Message-ID: <1990Aug12.130323.3503@druid.uucp> Date: 12 Aug 90 13:03:23 GMT References: <1820006@hpsad.HP.COM> Organization: D'Arcy Cain Consulting, West Hill, Ontario Lines: 21 In article <1820006@hpsad.HP.COM> jose@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@druid) | D'Arcy Cain Consulting | MS-DOS: The Andrew Dice Clay West Hill, Ontario, Canada | of operating systems. + 416 281 6094 |