aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/transport
diff options
context:
space:
mode:
authorLane Kolbly <lane.kolbly@ni.com>2020-04-07 15:19:32 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-04-08 15:16:06 -0500
commit5802a362f83bba3959a260ea9e00e4c65cf9508f (patch)
tree71ac84911c4153650d6247ceb29da53278d44c65 /host/lib/include/uhdlib/transport
parentabf025f0a5c537f0b2ab07da933ffb82f62418ef (diff)
downloaduhd-5802a362f83bba3959a260ea9e00e4c65cf9508f.tar.gz
uhd-5802a362f83bba3959a260ea9e00e4c65cf9508f.tar.bz2
uhd-5802a362f83bba3959a260ea9e00e4c65cf9508f.zip
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.
Diffstat (limited to 'host/lib/include/uhdlib/transport')
-rw-r--r--host/lib/include/uhdlib/transport/adapter.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/adapter_info.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/dpdk/arp.hpp4
-rw-r--r--host/lib/include/uhdlib/transport/dpdk/common.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/dpdk/service_queue.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/dpdk/udp.hpp4
-rw-r--r--host/lib/include/uhdlib/transport/dpdk_io_service.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/dpdk_io_service_client.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/dpdk_simple.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/frame_reservation_mgr.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/get_aligned_buffs.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/inline_io_service.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/io_service.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/liberio_link.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/link_base.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/link_if.hpp7
-rw-r--r--host/lib/include/uhdlib/transport/links.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/nirio_link.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/offload_io_service.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/offload_io_service_client.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/rx_streamer_impl.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/rx_streamer_zero_copy.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/tx_streamer_impl.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/tx_streamer_zero_copy.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/udp_boost_asio_link.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/udp_common.hpp5
-rw-r--r--host/lib/include/uhdlib/transport/udp_dpdk_link.hpp5
27 files changed, 28 insertions, 107 deletions
diff --git a/host/lib/include/uhdlib/transport/adapter.hpp b/host/lib/include/uhdlib/transport/adapter.hpp
index 3d6d49575..9ffc2ef6c 100644
--- a/host/lib/include/uhdlib/transport/adapter.hpp
+++ b/host/lib/include/uhdlib/transport/adapter.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_ADAPTER_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_ADAPTER_HPP
+#pragma once
#include <uhdlib/transport/adapter_info.hpp>
#include <uhdlib/transport/udp_boost_asio_link.hpp>
@@ -29,5 +28,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_ADAPTER_HPP */
diff --git a/host/lib/include/uhdlib/transport/adapter_info.hpp b/host/lib/include/uhdlib/transport/adapter_info.hpp
index a21551e96..c6fd798ab 100644
--- a/host/lib/include/uhdlib/transport/adapter_info.hpp
+++ b/host/lib/include/uhdlib/transport/adapter_info.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_ADAPTER_INFO_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_ADAPTER_INFO_HPP
+#pragma once
#include <uhd/transport/adapter_id.hpp>
#include <uhd/utils/noncopyable.hpp>
@@ -26,5 +25,3 @@ public:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_ADAPTER_INFO_HPP */
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 <uhdlib/transport/dpdk/common.hpp>
#include <uhdlib/transport/dpdk/service_queue.hpp>
@@ -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 <uhd/config.hpp>
#include <uhd/transport/frame_buff.hpp>
@@ -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 <uhd/exception.hpp>
#include <uhd/utils/log.hpp>
@@ -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 <uhdlib/transport/dpdk/common.hpp>
#include <arpa/inet.h>
@@ -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_ */
diff --git a/host/lib/include/uhdlib/transport/dpdk_io_service.hpp b/host/lib/include/uhdlib/transport/dpdk_io_service.hpp
index 8e1fb29d0..223bed249 100644
--- a/host/lib/include/uhdlib/transport/dpdk_io_service.hpp
+++ b/host/lib/include/uhdlib/transport/dpdk_io_service.hpp
@@ -3,8 +3,7 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef _INCLUDED_UHDLIB_TRANSPORT_DPDK_IO_SERVICE_HPP_
-#define _INCLUDED_UHDLIB_TRANSPORT_DPDK_IO_SERVICE_HPP_
+#pragma once
#include <uhdlib/transport/dpdk/common.hpp>
#include <uhdlib/transport/dpdk/service_queue.hpp>
@@ -242,5 +241,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* _INCLUDED_UHDLIB_TRANSPORT_DPDK_IO_SERVICE_HPP_ */
diff --git a/host/lib/include/uhdlib/transport/dpdk_io_service_client.hpp b/host/lib/include/uhdlib/transport/dpdk_io_service_client.hpp
index 300ca00b5..e40a8bc98 100644
--- a/host/lib/include/uhdlib/transport/dpdk_io_service_client.hpp
+++ b/host/lib/include/uhdlib/transport/dpdk_io_service_client.hpp
@@ -3,8 +3,7 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef _INCLUDED_UHDLIB_TRANSPORT_DPDK_IO_SERVICE_CLIENT_HPP_
-#define _INCLUDED_UHDLIB_TRANSPORT_DPDK_IO_SERVICE_CLIENT_HPP_
+#pragma once
#include <uhdlib/transport/dpdk/common.hpp>
#include <uhdlib/transport/dpdk/service_queue.hpp>
@@ -288,5 +287,3 @@ private:
}} // namespace uhd::transport
-
-#endif /* _INCLUDED_UHDLIB_TRANSPORT_DPDK_IO_SERVICE_CLIENT_HPP_ */
diff --git a/host/lib/include/uhdlib/transport/dpdk_simple.hpp b/host/lib/include/uhdlib/transport/dpdk_simple.hpp
index 8420510ea..072edbf9f 100644
--- a/host/lib/include/uhdlib/transport/dpdk_simple.hpp
+++ b/host/lib/include/uhdlib/transport/dpdk_simple.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_DPDK_SIMPLE_HPP
-#define INCLUDED_DPDK_SIMPLE_HPP
+#pragma once
#include <uhd/transport/udp_simple.hpp>
@@ -53,5 +52,3 @@ public:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_DPDK_SIMPLE_HPP */
diff --git a/host/lib/include/uhdlib/transport/frame_reservation_mgr.hpp b/host/lib/include/uhdlib/transport/frame_reservation_mgr.hpp
index f0dd853a4..e7cfc5078 100644
--- a/host/lib/include/uhdlib/transport/frame_reservation_mgr.hpp
+++ b/host/lib/include/uhdlib/transport/frame_reservation_mgr.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_FRAME_RESERVATION_MGR_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_FRAME_RESERVATION_MGR_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/exception.hpp>
@@ -106,5 +105,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_FRAME_RESERVATION_MGR_HPP */
diff --git a/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp b/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp
index d0f5682ca..1146c2a7b 100644
--- a/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp
+++ b/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_LIBUHD_GET_ALIGNED_BUFFS_HPP
-#define INCLUDED_LIBUHD_GET_ALIGNED_BUFFS_HPP
+#pragma once
#include <uhd/exception.hpp>
#include <uhd/utils/log.hpp>
@@ -172,5 +171,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_LIBUHD_GET_ALIGNED_BUFFS_HPP */
diff --git a/host/lib/include/uhdlib/transport/inline_io_service.hpp b/host/lib/include/uhdlib/transport/inline_io_service.hpp
index b0153a951..a9616dd86 100644
--- a/host/lib/include/uhdlib/transport/inline_io_service.hpp
+++ b/host/lib/include/uhdlib/transport/inline_io_service.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_INLINE_IO_SERVICE_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_INLINE_IO_SERVICE_HPP
+#pragma once
#include <uhdlib/transport/io_service.hpp>
#include <unordered_map>
@@ -129,5 +128,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_INLINE_IO_SERVICE_HPP */
diff --git a/host/lib/include/uhdlib/transport/io_service.hpp b/host/lib/include/uhdlib/transport/io_service.hpp
index 5bbb91d1f..62dfdfe0d 100644
--- a/host/lib/include/uhdlib/transport/io_service.hpp
+++ b/host/lib/include/uhdlib/transport/io_service.hpp
@@ -34,8 +34,7 @@
*/
-#ifndef INCLUDED_UHDLIB_TRANSPORT_IO_SERVICE_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_IO_SERVICE_HPP
+#pragma once
#include <uhdlib/transport/link_if.hpp>
#include <functional>
@@ -363,5 +362,3 @@ public:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_IO_SERVICE_HPP */
diff --git a/host/lib/include/uhdlib/transport/liberio_link.hpp b/host/lib/include/uhdlib/transport/liberio_link.hpp
index 6cd550572..e81a39393 100644
--- a/host/lib/include/uhdlib/transport/liberio_link.hpp
+++ b/host/lib/include/uhdlib/transport/liberio_link.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_LIBERIO_LINK_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_LIBERIO_LINK_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/transport/buffer_pool.hpp>
@@ -177,5 +176,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_LIBERIO_LINK_HPP */
diff --git a/host/lib/include/uhdlib/transport/link_base.hpp b/host/lib/include/uhdlib/transport/link_base.hpp
index a57b681ca..078b82fc6 100644
--- a/host/lib/include/uhdlib/transport/link_base.hpp
+++ b/host/lib/include/uhdlib/transport/link_base.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_LINK_BASE_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_LINK_BASE_HPP
+#pragma once
#include <uhdlib/transport/link_if.hpp>
#include <cassert>
@@ -229,5 +228,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_LINK_BASE_HPP */
diff --git a/host/lib/include/uhdlib/transport/link_if.hpp b/host/lib/include/uhdlib/transport/link_if.hpp
index 55755948c..0c3844d0e 100644
--- a/host/lib/include/uhdlib/transport/link_if.hpp
+++ b/host/lib/include/uhdlib/transport/link_if.hpp
@@ -4,13 +4,12 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
+#pragma once
+
#include <uhd/transport/adapter_id.hpp>
#include <uhd/transport/frame_buff.hpp>
#include <memory>
-#ifndef INCLUDED_UHDLIB_TRANSPORT_LINK_IF_HPP
-# define INCLUDED_UHDLIB_TRANSPORT_LINK_IF_HPP
-
namespace uhd { namespace transport {
/*!
@@ -126,5 +125,3 @@ public:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_LINK_IF_HPP */
diff --git a/host/lib/include/uhdlib/transport/links.hpp b/host/lib/include/uhdlib/transport/links.hpp
index 6fe51dbbd..f9d08de11 100644
--- a/host/lib/include/uhdlib/transport/links.hpp
+++ b/host/lib/include/uhdlib/transport/links.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_LINKS_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_LINKS_HPP
+#pragma once
#include <uhdlib/transport/io_service.hpp>
#include <uhdlib/transport/link_if.hpp>
@@ -38,5 +37,3 @@ struct link_params_t
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_LINKS_HPP */
diff --git a/host/lib/include/uhdlib/transport/nirio_link.hpp b/host/lib/include/uhdlib/transport/nirio_link.hpp
index 296fe37b9..cf1bb1d75 100644
--- a/host/lib/include/uhdlib/transport/nirio_link.hpp
+++ b/host/lib/include/uhdlib/transport/nirio_link.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHD_TRANSPORT_NIRIO_LINK_HPP
-#define INCLUDED_UHD_TRANSPORT_NIRIO_LINK_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/transport/buffer_pool.hpp>
@@ -224,5 +223,3 @@ private:
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHD_TRANSPORT_NIRIO_LINK_HPP */
diff --git a/host/lib/include/uhdlib/transport/offload_io_service.hpp b/host/lib/include/uhdlib/transport/offload_io_service.hpp
index 02231c502..9d653f7ad 100644
--- a/host/lib/include/uhdlib/transport/offload_io_service.hpp
+++ b/host/lib/include/uhdlib/transport/offload_io_service.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_OFFLOAD_IO_SERVICE_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_OFFLOAD_IO_SERVICE_HPP
+#pragma once
#include <uhdlib/transport/io_service.hpp>
#include <vector>
@@ -54,5 +53,3 @@ public:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_OFFLOAD_IO_SERVICE_HPP */
diff --git a/host/lib/include/uhdlib/transport/offload_io_service_client.hpp b/host/lib/include/uhdlib/transport/offload_io_service_client.hpp
index d0e6bb4bd..775a5bfaf 100644
--- a/host/lib/include/uhdlib/transport/offload_io_service_client.hpp
+++ b/host/lib/include/uhdlib/transport/offload_io_service_client.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_OFFLOAD_IO_SERVICE_CLIENT_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_OFFLOAD_IO_SERVICE_CLIENT_HPP
+#pragma once
#include <uhd/transport/frame_buff.hpp>
#include <chrono>
@@ -174,5 +173,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_OFFLOAD_IO_SERVICE_CLIENT_HPP */
diff --git a/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp b/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp
index 491a5ab98..ce66d2ccb 100644
--- a/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp
+++ b/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_LIBUHD_RX_STREAMER_IMPL_HPP
-#define INCLUDED_LIBUHD_RX_STREAMER_IMPL_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/convert.hpp>
@@ -385,5 +384,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_LIBUHD_RX_STREAMER_IMPL_HPP */
diff --git a/host/lib/include/uhdlib/transport/rx_streamer_zero_copy.hpp b/host/lib/include/uhdlib/transport/rx_streamer_zero_copy.hpp
index 86f13f28d..ca2eb3506 100644
--- a/host/lib/include/uhdlib/transport/rx_streamer_zero_copy.hpp
+++ b/host/lib/include/uhdlib/transport/rx_streamer_zero_copy.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_LIBUHD_RX_STREAMER_ZERO_COPY_HPP
-#define INCLUDED_LIBUHD_RX_STREAMER_ZERO_COPY_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/exception.hpp>
@@ -384,5 +383,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_LIBUHD_RX_STREAMER_ZERO_COPY_HPP */
diff --git a/host/lib/include/uhdlib/transport/tx_streamer_impl.hpp b/host/lib/include/uhdlib/transport/tx_streamer_impl.hpp
index c1cc3156f..ae6a1b867 100644
--- a/host/lib/include/uhdlib/transport/tx_streamer_impl.hpp
+++ b/host/lib/include/uhdlib/transport/tx_streamer_impl.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_LIBUHD_TX_STREAMER_IMPL_HPP
-#define INCLUDED_LIBUHD_TX_STREAMER_IMPL_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/convert.hpp>
@@ -455,5 +454,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_LIBUHD_TRANSPORT_TX_STREAMER_IMPL_HPP */
diff --git a/host/lib/include/uhdlib/transport/tx_streamer_zero_copy.hpp b/host/lib/include/uhdlib/transport/tx_streamer_zero_copy.hpp
index aa36c9d3b..5b1829397 100644
--- a/host/lib/include/uhdlib/transport/tx_streamer_zero_copy.hpp
+++ b/host/lib/include/uhdlib/transport/tx_streamer_zero_copy.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_LIBUHD_TX_STREAMER_ZERO_COPY_HPP
-#define INCLUDED_LIBUHD_TX_STREAMER_ZERO_COPY_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/stream.hpp>
@@ -152,5 +151,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_LIBUHD_TX_STREAMER_ZERO_COPY_HPP */
diff --git a/host/lib/include/uhdlib/transport/udp_boost_asio_link.hpp b/host/lib/include/uhdlib/transport/udp_boost_asio_link.hpp
index 6b350e997..a5ba976c7 100644
--- a/host/lib/include/uhdlib/transport/udp_boost_asio_link.hpp
+++ b/host/lib/include/uhdlib/transport/udp_boost_asio_link.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHD_TRANSPORT_UDP_BOOST_ASIO_LINK_HPP
-#define INCLUDED_UHD_TRANSPORT_UDP_BOOST_ASIO_LINK_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/transport/buffer_pool.hpp>
@@ -155,5 +154,3 @@ private:
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHD_TRANSPORT_UDP_BOOST_ASIO_LINK_HPP */
diff --git a/host/lib/include/uhdlib/transport/udp_common.hpp b/host/lib/include/uhdlib/transport/udp_common.hpp
index 6deb265d4..cb11ce173 100644
--- a/host/lib/include/uhdlib/transport/udp_common.hpp
+++ b/host/lib/include/uhdlib/transport/udp_common.hpp
@@ -6,8 +6,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_TRANSPORT_UDP_COMMON_HPP
-#define INCLUDED_TRANSPORT_UDP_COMMON_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/exception.hpp>
@@ -285,5 +284,3 @@ inline link_params_t calculate_udp_link_params(
}} // namespace uhd::transport
-
-#endif /* INCLUDED_TRANSPORT_UDP_COMMON_HPP */
diff --git a/host/lib/include/uhdlib/transport/udp_dpdk_link.hpp b/host/lib/include/uhdlib/transport/udp_dpdk_link.hpp
index eaf3cf7c4..305d35319 100644
--- a/host/lib/include/uhdlib/transport/udp_dpdk_link.hpp
+++ b/host/lib/include/uhdlib/transport/udp_dpdk_link.hpp
@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#ifndef INCLUDED_UHDLIB_TRANSPORT_UDP_DPDK_LINK_HPP
-#define INCLUDED_UHDLIB_TRANSPORT_UDP_DPDK_LINK_HPP
+#pragma once
#include <uhd/config.hpp>
#include <uhd/transport/buffer_pool.hpp>
@@ -263,5 +262,3 @@ private:
};
}} // namespace uhd::transport
-
-#endif /* INCLUDED_UHDLIB_TRANSPORT_UDP_DPDK_LINK_HPP */