From 4bafba06f2b8cc51cd95a725e1c8adf7bbf9a5fc Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Tue, 24 May 2016 10:18:43 -0400 Subject: Migrate from #ifndef guards to #pragma once 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. This patch does not change the autogenerated files: asn1/asn1c/*.h. Reviewed-By: Martin Basti Reviewed-By: Christian Heimes --- client/ipa-client-common.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'client') diff --git a/client/ipa-client-common.h b/client/ipa-client-common.h index e831c596c..d0db0637e 100644 --- a/client/ipa-client-common.h +++ b/client/ipa-client-common.h @@ -17,8 +17,7 @@ * along with this program. If not, see . */ -#ifndef __IPA_CLIENT_COMMON_H -#define __IPA_CLIENT_COMMON_H +#pragma once #include #define _(STRING) gettext(STRING) @@ -29,5 +28,3 @@ #endif int init_gettext(void); - -#endif /* __IPA_CLIENT_COMMON_H */ -- cgit