Using #pragma once in headers

Alan Modra amodra@gmail.com
Wed May 7 00:58:30 GMT 2025


On Tue, May 06, 2025 at 11:58:54AM +0100, Matthieu Longo wrote:
> Would it make sense to accept "#pragma once" and deviate one millimeter away
> from the C99 standard instead of using #ifndef ... #define ... #endif ?

I'm mildly against the proposal.  Consistency matters.  If you were
starting a new sub-project of binutils then I wouldn't mind.

-- 
Alan Modra


More information about the Binutils mailing list