This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: pragma once


Chris Telting wrote:
> 
> #pramga once doesn't work or isn't implemented
> 
> When used the warning is that it's obsolete when what's really
> obsolete is the old #ifndef #define #endif
#ifndef... is the canonical conforming way to make idempotent header files.
Decent preprocessors (of which gcc has), will spot it and DTRT.

nathan

-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
        I have seen the death of PhotoShop -- it is called GIMP
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]