Mail Archives: djgpp/1992/06/15/11:09:37
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 -