]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
...and a few more
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 12 Apr 2018 06:49:02 +0000 (12:49 +0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 12 Apr 2018 06:49:02 +0000 (12:49 +0600)
src/include/all.mk
src/include/connection.h
src/include/stdatomic.h
src/lib/ldap/libfreeradius-ldap.h

index 962b4bf2835b7a47fbb7ccdebe0cf4965f60bdc1..b68962d91a083e6717bc31ed5d1872727e50950d 100644 (file)
@@ -81,7 +81,7 @@ HEADERS       += $(notdir ${HEADERS_RFC})
 .PRECIOUS: $(HEADERS_RFC)
 
 NORMALIZE      := tr -- '[:lower:]/.-' '[:upper:]___' | sed 's/^/\#define /;s/241_//;'
-HEADER         := "/* AUTO_GENERATED FILE.  DO NOT EDIT */"
+HEADER         := "/* AUTO_GENERATED FILE.  DO NOT EDIT */\n\#pragma once"
 
 src/include/attributes.h: share/dictionary.freeradius.internal
        ${Q}$(ECHO) HEADER $@
index 323af9a3fce840a692a7c0c5c277433f06ca7bae..09b295e51432ae3eb9a84ff51e4566b8fd3a2b97 100644 (file)
@@ -1,3 +1,4 @@
+#pragma once
 /*
  *   This program is is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
index 71e472918c7c2b5692c6d8ef34ec0bdd14f5a8b5..780e5a0fb67acd082db8c1ae84746966d7e0c728 100644 (file)
@@ -1,3 +1,4 @@
+#pragma once
 /*
  * An implementation of C11 stdatomic.h directly borrowed from FreeBSD
  * (original copyright follows), with minor modifications for
  *
  * $FreeBSD: src/include/stdatomic.h,v 1.10.2.2 2012/05/30 19:21:54 theraven Exp $
  */
-
-#ifndef _STDATOMIC_H_
-#define        _STDATOMIC_H_
-
 #include <stddef.h>
 #include <stdint.h>
 
@@ -365,5 +362,3 @@ typedef atomic_bool                 atomic_flag;
        atomic_flag_clear_explicit(object, memory_order_seq_cst)
 #define        atomic_flag_test_and_set(object)                                \
        atomic_flag_test_and_set_explicit(object, memory_order_seq_cst)
-
-#endif /* !_STDATOMIC_H_ */
index 4f458dc94cbc98c03b21e3ced5f0ee151ce35570..0133ef4f7e6165e18735e5b6e9e0f4b899bc5182 100644 (file)
@@ -1,3 +1,4 @@
+#pragma once
 /**
  * $Id$
  * @file lib/ldap/libfreeradius-ldap.h
@@ -12,9 +13,6 @@
  * @copyright 2017 The FreeRADIUS Server Project.
  * @copyright 2017 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  */
-#ifndef LIBFREERADIUS_LDAP_H
-#define        LIBFREERADIUS_LDAP_H
-
 #include <freeradius-devel/radiusd.h>
 #include <freeradius-devel/connection.h>
 #include <lber.h>
@@ -551,6 +549,3 @@ uint8_t             *fr_ldap_berval_to_bin(TALLOC_CTX *ctx, struct berval const *in);
 
 int            fr_ldap_parse_url_extensions(LDAPControl **sss, REQUEST *request,
                                             fr_ldap_connection_t *conn, char **extensions);
-
-
-#endif