tree.h vs include guard

Devang Patel dpatel@apple.com
Tue Aug 13 19:21:00 GMT 2002


We already have guard in our Darwin sources for tree.h

I do not know, if there is particular reason for not providing guards 
for headers.
At one time, I saw many headers without include protection guards.

On Tuesday, August 13, 2002, at 05:54  PM, Gabriel Dos Reis wrote:

Hi,

  I noticed that tree.h has no guard to prevent multiple-inclusions.
Why so?  FWIW, c-tree.h, c-common.h and cp-tree.h do have such a
thing.

-- Gaby



More information about the Gcc mailing list