A solution to the multiple inclusion problem

Sandy Mustard mustard at sdrc.UUCP
Fri Oct 27 01:51:58 AEST 1989


In article <1088 at odin.SGI.COM>, shap at delrey.sgi.com (Jonathan Shapiro) writes:
> 
> Okay, here's another cute trick.
> 
> inside FRED_H do the following:
> 
>    #ifdef FRED_H
>    #undef FRED_H
>    #define FRED_H /dev/null
>    #endif
> 
But it only works on those systems that have /dev/null. It is not PORTABLE!

Sandy Mustard



More information about the Comp.lang.c mailing list