include files -- help needed
D'Arcy J.M. Cain
darcy at druid.uucp
Thu Jun 27 07:31:14 AEST 1991
In article <1991Jun26.091408.5023 at 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 at druid) |
D'Arcy Cain Consulting | There's no government
Toronto, Ontario, Canada | like no government!
+1 416 424 2871 |
More information about the Comp.lang.c
mailing list