aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-01 22:31:06 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-01 22:31:06 +0100
commite6c48bd803be2d27a5522d7247bd8c73c1aa8c15 (patch)
treeae0cf2bb138529068da4c30c51ee8a65ec968b8e
parent5d84e05622a1e33904f41bb629bf5e15c4582abf (diff)
downloadodr-dpd-e6c48bd803be2d27a5522d7247bd8c73c1aa8c15.tar.gz
odr-dpd-e6c48bd803be2d27a5522d7247bd8c73c1aa8c15.tar.bz2
odr-dpd-e6c48bd803be2d27a5522d7247bd8c73c1aa8c15.zip
Add header guards
-rw-r--r--AlignSample.hpp2
-rw-r--r--OutputUHD.hpp5
-rw-r--r--pointcloud.hpp2
-rw-r--r--utils.hpp4
4 files changed, 6 insertions, 7 deletions
diff --git a/AlignSample.hpp b/AlignSample.hpp
index f61d0bb..d027823 100644
--- a/AlignSample.hpp
+++ b/AlignSample.hpp
@@ -21,6 +21,8 @@
along with ODR-DPD. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#include "utils.hpp"
#include <thread>
#include <vector>
diff --git a/OutputUHD.hpp b/OutputUHD.hpp
index b0288b8..4c7ac12 100644
--- a/OutputUHD.hpp
+++ b/OutputUHD.hpp
@@ -21,8 +21,7 @@
along with ODR-DPD. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __OUTPUT_UHD_H_
-#define __OUTPUT_UHD_H_
+#pragma once
#include <uhd/usrp/multi_usrp.hpp>
@@ -50,5 +49,3 @@ class OutputUHD {
uhd::rx_streamer::sptr myRxStream;
};
-#endif // __OUTPUT_UHD_H_
-
diff --git a/pointcloud.hpp b/pointcloud.hpp
index 19febe5..62fe6f4 100644
--- a/pointcloud.hpp
+++ b/pointcloud.hpp
@@ -21,6 +21,8 @@
along with ODR-DPD. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#include "utils.hpp"
#include <exception>
#include <deque>
diff --git a/utils.hpp b/utils.hpp
index 9cff9e0..d48b0a7 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -1,4 +1,4 @@
-#ifndef __UTILS_H_
+#pragma once
#include <cstddef>
@@ -14,6 +14,4 @@ typedef std::complex<float> complexf;
#define MDEBUG(fmt, args...) fprintf (stderr, fmt , ## args)
-#define __UTILS_H_
-#endif // __UTILS_H_