This is the mail archive of the
mailing list for the GCC project.
- From: Drgt <dragity at mail dot ru>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 13 Aug 2006 19:48:40 +0300
- Subject: #pragma once
It seems, that "#pragma once" isn't in ISO, and will never be, especially
because it is Microsoft (am I right ?) C extension.
But I still asking GCC developers, that this simple-in-use thing would be
in GCC, and you not "play football" with it.
I am MSVC user, and now I need to port one program to Linux/GCC :
remaking single simple line "#pragma once" to #ifdef/#define/#endif
sequence + add header file name to it + check, is that #define not used
It is really loading me (and be sure - others too) work.
I promise, that "#pragma once" will make GCC much attractive.
Yes, I know - you are holding at ISO standard as much as it is possible.
Calling "#pragma once" obsolete - isn't good idea, and of course, it will
produces messages like this :
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/