#pragma once

llewelly@xmission.com llewelly@xmission.com
Tue Jun 29 18:17:00 GMT 2004


"Daniel Sievers" <DSievers@nvidia.com> writes:

> Hi,
> 
> What is the status and plans about further supporting or removing the
> "#pragma once" feature?
> 
> Is it possible that you remove the warning: "#pragma once is obsolete"
> in future gcc versions or add a switch to disable it?
[snip]

See http://gcc.gnu.org/gcc-3.4/changes.html, particularly:

  * File handling in the preprocessor has been rewritten. GCC no
    longer gets confused by symlinks and hardlinks, and now has a
    correct implementation of #import and #pragma once. These two
    directives have therefore been un-deprecated.
    
 



More information about the Gcc mailing list