Xref: utzoo comp.unix.wizards:24412 comp.unix.questions:29339 Path: utzoo!mnetor!tmsoft!torsqnt!hybrid!scifi!bywater!uunet!bria!mike Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: header file duplicate definitions advice sought Message-ID: <512@bria> Date: 8 Mar 91 22:09:12 GMT References: Reply-To: uunet!bria!mike Followup-To: comp.unix.wizards Organization: MGI Group International, Los Angeles, CA Lines: 20 Followup-To: Keywords: In an article, pogo.ai.mit.edu!cracraft (Stuart Cracraft) writes: >How can you eliminate redefined errors in C when you have several thousand >"#define"'s defined in both *.h and *.c files(about 2000 files combined)? I do it rather easily; with multiple headers, you simply do something like this: #ifndef _H_myhead #define _H_myhead . . (defines and other Good Stuff go here) . #endif You do this for each header file. Works like a charm for me. -- Michael Stefanik, MGI Inc., Los Angeles| Opinions stated are not even my own. Title of the week: Systems Engineer | UUCP: ...!uunet!bria!mike ------------------------------------------------------------------------------- Remember folks: If you can't flame MS-DOS, then what _can_ you flame?