[Freeipa-devel] [PATCH 0094] Migrate from #ifndef guards to #pragma once

Christian Heimes cheimes at redhat.com
Tue May 24 15:00:16 UTC 2016


On 2016-05-24 16:29, Nathaniel McCallum wrote:
> Using a pragma instead of guards is easier to write, less error prone
> and avoids name clashes (a source of very subtle bugs). This pragma
> is supported on almost all compilers, including all the compilers we
> care about: https://en.wikipedia.org/wiki/Pragma_once#Portability.

Good idea! LGTM

It's a low risk change. Any issues with pragma once will show up during
compilation.

Christian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160524/64471504/attachment.sig>


More information about the Freeipa-devel mailing list