From 5802a362f83bba3959a260ea9e00e4c65cf9508f Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Tue, 7 Apr 2020 15:19:32 -0500 Subject: uhd: Replace include guards with pragma once Pragma once is the more modern version of include guards, eliminating any potential problems with mistyping include guards. Let's use those. --- host/lib/include/uhdlib/transport/dpdk/arp.hpp | 4 +--- host/lib/include/uhdlib/transport/dpdk/common.hpp | 5 +---- host/lib/include/uhdlib/transport/dpdk/service_queue.hpp | 5 +---- host/lib/include/uhdlib/transport/dpdk/udp.hpp | 4 +--- 4 files changed, 4 insertions(+), 14 deletions(-) (limited to 'host/lib/include/uhdlib/transport/dpdk') diff --git a/host/lib/include/uhdlib/transport/dpdk/arp.hpp b/host/lib/include/uhdlib/transport/dpdk/arp.hpp index e71119bb3..684c3c370 100644 --- a/host/lib/include/uhdlib/transport/dpdk/arp.hpp +++ b/host/lib/include/uhdlib/transport/dpdk/arp.hpp @@ -3,8 +3,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later // -#ifndef _INCLUDED_UHDLIB_TRANSPORT_DPDK_ARP_HPP_ -#define _INCLUDED_UHDLIB_TRANSPORT_DPDK_ARP_HPP_ +#pragma once #include #include @@ -26,4 +25,3 @@ struct arp_entry }; }}} /* namespace uhd::transport::dpdk */ -#endif /* _INCLUDED_UHDLIB_TRANSPORT_DPDK_ARP_HPP_ */ diff --git a/host/lib/include/uhdlib/transport/dpdk/common.hpp b/host/lib/include/uhdlib/transport/dpdk/common.hpp index ac3526e49..280b7da64 100644 --- a/host/lib/include/uhdlib/transport/dpdk/common.hpp +++ b/host/lib/include/uhdlib/transport/dpdk/common.hpp @@ -4,8 +4,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later // -#ifndef _INCLUDED_UHDLIB_TRANSPORT_DPDK_COMMON_HPP_ -#define _INCLUDED_UHDLIB_TRANSPORT_DPDK_COMMON_HPP_ +#pragma once #include #include @@ -401,5 +400,3 @@ private: } // namespace dpdk }} // namespace uhd::transport - -#endif /* _INCLUDED_UHDLIB_TRANSPORT_DPDK_COMMON_HPP_ */ diff --git a/host/lib/include/uhdlib/transport/dpdk/service_queue.hpp b/host/lib/include/uhdlib/transport/dpdk/service_queue.hpp index c95786864..85b29fe0a 100644 --- a/host/lib/include/uhdlib/transport/dpdk/service_queue.hpp +++ b/host/lib/include/uhdlib/transport/dpdk/service_queue.hpp @@ -3,8 +3,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later // -#ifndef _INCLUDED_UHDLIB_TRANSPORT_DPDK_SERVICE_QUEUE_HPP_ -#define _INCLUDED_UHDLIB_TRANSPORT_DPDK_SERVICE_QUEUE_HPP_ +#pragma once #include #include @@ -261,5 +260,3 @@ private: }; }}} // namespace uhd::transport::dpdk - -#endif /*_INCLUDED_UHDLIB_TRANSPORT_DPDK_SERVICE_QUEUE_HPP_ */ diff --git a/host/lib/include/uhdlib/transport/dpdk/udp.hpp b/host/lib/include/uhdlib/transport/dpdk/udp.hpp index 65e561315..d74183bf5 100644 --- a/host/lib/include/uhdlib/transport/dpdk/udp.hpp +++ b/host/lib/include/uhdlib/transport/dpdk/udp.hpp @@ -3,8 +3,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later // -#ifndef _INCLUDED_UHDLIB_TRANSPORT_DPDK_UDP_HPP_ -#define _INCLUDED_UHDLIB_TRANSPORT_DPDK_UDP_HPP_ +#pragma once #include #include @@ -112,4 +111,3 @@ inline std::string eth_addr_to_string(const struct ether_addr mac_addr) } }}} /* namespace uhd::transport::dpdk */ -#endif /* _INCLUDED_UHDLIB_TRANSPORT_DPDK_UDP_HPP_ */ -- cgit v1.2.3