Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!aussie!rex From: rex@aussie.UUCP (Rex Jaeschke) Newsgroups: comp.std.c Subject: Re: Multiple typedefs Message-ID: <16.UUL1.3#5077@aussie.UUCP> Date: 29 Apr 89 18:23:26 GMT References: <10167@smoke.BRL.MIL> Organization: Journal of C Language Translation Lines: 18 > From: gwyn@smoke.BRL.MIL (Doug Gwyn) > The conventional way to guard against this is: > #ifndef _FOO_T_DEFINED > #define _FOO_T_DEFINED > typedef unsigned int foo_t; > #endif Watch out though 'cos this is the solution for implementers. If you are Joe Shmoe programmer, you should avoid the leading underscores since implementers are permitted to use those names in their headers. Rex ---------------------------------------------------------------------------- Rex Jaeschke | C Users Journal | Journal of C Language Translation (703) 860-0091 | DEC PROFESSIONAL |1810 Michael Faraday Drive, Suite 101 uunet!aussie!rex | Programmers Journal | Reston, Virginia 22090, USA ----------------------------------------------------------------------------