This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: pragma once
- To: Chris Telting <telting at sprynet dot com>
- Subject: Re: pragma once
- From: Nathan Sidwell <nathan at acm dot org>
- Date: Mon, 23 Aug 1999 15:35:37 +0100
- CC: gcc-bugs <gcc-bugs at gcc dot gnu dot org>
- Organization: University of Bristol
- References: <000501beed70$ad3738b0$c8c556d1@hercules>
- Reply-To: nathan at compsci dot bristol dot ac dot uk
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