A solution to the multiple inclusion problem

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Oct 25 06:12:42 AEST 1989


In article <1659 at atanasoff.cs.iastate.edu> hascall at atanasoff.UUCP (John Hascall) writes:
-    Since the impending ANSI standard requires that including a file more
-    than once have exactly the same effect as including it once...why can't
-    a compiler just ignore #includes for files it has already #included???
-    (at least for the "standard" includes)

It can, but ONLY for the standard headers.



More information about the Comp.lang.c mailing list