This is the mail archive of the gcc@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]
Other format: [Raw text]

#pragma once


Hi.

It seems, that "#pragma once" isn't in ISO, and will never be, especially
because it is Microsoft (am I right ?) C extension.
(http://gcc.gnu.org/ml/gcc/2004-06/msg01887.html)
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
anywhere else.
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.
You decide.

Calling "#pragma once" obsolete - isn't good idea, and of course, it will
produces messages like this :
http://gcc.gnu.org/ml/gcc-bugs/1999-08n/msg00844.html
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


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