Newsgroups: comp.lang.c
Path: utzoo!telly!druid!darcy
From: darcy@druid.uucp (D'Arcy J.M. Cain)
Subject: Re: include files -- help needed
Message-ID: <1991Jun26.213114.236@druid.uucp>
Organization: D'Arcy Cain Consulting, West Hill, Ontario
References: <1966@nixsin.UUCP> <1991Jun20.170144.1109@keinstr.uucp> <1991Jun26.091408.5023@thunder.mcrcim.mcgill.edu>
Date: Wed, 26 Jun 91 21:31:14 GMT

In article <1991Jun26.091408.5023@thunder.mcrcim.mcgill.edu> der Mouse writes:
>> #ifndef FOOBAR_H
>> #define FOOBAR_H
>> ...
>> #endif
>I used to do that too, until I found I had two time.h files, both using
>TIME_H.  So now I tack on a 32-bit hash of the file contents (computed

Why go through that?  I assume you mean that you have something like time.h
and sys/time.h so just prepend _SYS_ to the defines in the sys directory:

  #ifndef _SYS_TIME_H
  #define _SYS_TIME_H
etc.

-- 
D'Arcy J.M. Cain (darcy@druid)     |
D'Arcy Cain Consulting             |   There's no government
Toronto, Ontario, Canada           |   like no government!
+1 416 424 2871                    |
