Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!munnari.oz.au!manuel!ccadfa!bxw From: bxw@ccadfa.adfa.oz.au (Brad Willcott) Newsgroups: comp.lang.c Subject: Re: include files -- help needed Message-ID: <2420@ccadfa.adfa.oz.au> Date: 8 Jun 91 14:08:27 GMT Article-I.D.: ccadfa.2420 References: <1991Jun7.233854.11170@arcturus.uucp> Organization: Computer Centre, University College, UNSW, ADFA, Canberra, Australia Lines: 37 Your problem seems to me to be simple of solution. That is unless I misread your article. Why don't you use preprocessor defines in your source files, and test for them in your include files. Here is an example: ---------- source.c --------- #define BIT_to_DBMS #include ... ----------------------------- ---------- major.c ---------- #define SYSTEM_ACCESS #include ... ----------------------------- --------- header.h ---------- #ifdef BIT_to_DBMS ... #endif /* BIT_to_DBMS */ #ifdef SYSTEM_ACCESS ... #endif /* SYSTEM_ACCESS */ #ifdef DBMS_to_BIT ... #endif /* DBMS_to_BIT */ ----------------------------- If this is NOT a solution to your problem, then I DON'T understand it. -- Brad Willcott, ACSnet: bxw@ccadfa.cc.adfa.oz Computing Services, Internet: bxw@ccadfa.cc.adfa.oz.au Australian Defence Force Academy, UUCP:!uunet!munnari.oz.au!ccadfa.oz!bxw Northcott Dr. Campbell ACT Australia 2600 +61 6 268 8584 +61 6 268 8150 (Fax)