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

Nathaniel McCallum npmccallum at redhat.com
Tue May 24 14:33:46 UTC 2016


On Tue, 2016-05-24 at 10:29 -0400, 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.

I forgot to mention that I did not migrate the headers that are
generated from asn1c as this would simply cause unnecessary code churn.




More information about the Freeipa-devel mailing list