[systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Jul 18 03:23:02 PDT 2012


On 07/18/2012 02:14 AM, Shawn Landden wrote:
>  #pragma once has been "un-deprecated" in gcc since 3.3, and is widely supported
> in other compilers.

>  101 files changed, 101 insertions(+), 403 deletions(-)

Looking at http://en.wikipedia.org/wiki/Pragma_once#Portability, this
doesn't seem like a bad idea.

Zbyszek


More information about the systemd-devel mailing list