www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/06/15/11:09:37

Date: Mon, 15 Jun 92 16:17:55 +0200
From: ms AT informatik DOT uni-hannover DOT de (Michael Sperber)
To: walsh AT cs DOT umass DOT edu DOT ddn
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Includes for gcc 2.01???

I can at least tell you where the "#pragma once is obsolete" message
comes from:  The preprocessor in GCC 2.0 now recognizes if a header
file has an "#ifdef HEADER_FILE" at the beginning and a
corresponding "#endif" at the end, so it doesn't even attempt to read
such header files for a second time.  The previous version implemented
this feature with the #pragma once somewhere in the header file.
Since the latter feature is not portable whereas the other one is,
GCC's CPP still accepts #pragma once commands but discourages their
use because of the more portable way to do its work.

Cheers :-> Chipsy Sperber

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019