mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 04:43:34 +08:00
All occurences of pragma once in libuavcan headers were replaced with conventional include guards.
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef UAVCAN_UTIL_BITSET_HPP_INCLUDED
|
||||
#define UAVCAN_UTIL_BITSET_HPP_INCLUDED
|
||||
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
@@ -184,3 +185,5 @@ Stream& operator<<(Stream& s, const BitSet<NumBits>& x)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // UAVCAN_UTIL_BITSET_HPP_INCLUDED
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef UAVCAN_UTIL_COMPARISON_HPP_INCLUDED
|
||||
#define UAVCAN_UTIL_COMPARISON_HPP_INCLUDED
|
||||
|
||||
#include <uavcan/util/templates.hpp>
|
||||
#include <uavcan/build_config.hpp>
|
||||
@@ -266,3 +267,5 @@ inline bool isCloseToZero<long double>(const long double& x)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // UAVCAN_UTIL_COMPARISON_HPP_INCLUDED
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef UAVCAN_UTIL_LAZY_CONSTRUCTOR_HPP_INCLUDED
|
||||
#define UAVCAN_UTIL_LAZY_CONSTRUCTOR_HPP_INCLUDED
|
||||
|
||||
#include <cstdlib>
|
||||
#include <uavcan/error.hpp>
|
||||
@@ -173,3 +174,5 @@ public:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // UAVCAN_UTIL_LAZY_CONSTRUCTOR_HPP_INCLUDED
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef UAVCAN_UTIL_LINKED_LIST_HPP_INCLUDED
|
||||
#define UAVCAN_UTIL_LINKED_LIST_HPP_INCLUDED
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
@@ -170,3 +171,5 @@ void LinkedListRoot<T>::remove(const T* node)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // UAVCAN_UTIL_LINKED_LIST_HPP_INCLUDED
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef UAVCAN_UTIL_MAP_HPP_INCLUDED
|
||||
#define UAVCAN_UTIL_MAP_HPP_INCLUDED
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
@@ -500,3 +501,5 @@ unsigned MapBase<Key, Value>::getNumDynamicPairs() const
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // UAVCAN_UTIL_MAP_HPP_INCLUDED
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef UAVCAN_UTIL_METHOD_BINDER_HPP_INCLUDED
|
||||
#define UAVCAN_UTIL_METHOD_BINDER_HPP_INCLUDED
|
||||
|
||||
#include <uavcan/error.hpp>
|
||||
#include <uavcan/build_config.hpp>
|
||||
@@ -79,3 +80,5 @@ public:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // UAVCAN_UTIL_METHOD_BINDER_HPP_INCLUDED
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef UAVCAN_UTIL_PLACEMENT_NEW_HPP_INCLUDED
|
||||
#define UAVCAN_UTIL_PLACEMENT_NEW_HPP_INCLUDED
|
||||
|
||||
#include <cstddef>
|
||||
#include <uavcan/build_config.hpp>
|
||||
@@ -33,3 +34,5 @@ inline void operator delete[](void*, void*) throw() { }
|
||||
#else
|
||||
# include <new>
|
||||
#endif
|
||||
|
||||
#endif // UAVCAN_UTIL_PLACEMENT_NEW_HPP_INCLUDED
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef UAVCAN_UTIL_TEMPLATES_HPP_INCLUDED
|
||||
#define UAVCAN_UTIL_TEMPLATES_HPP_INCLUDED
|
||||
|
||||
#include <climits>
|
||||
#include <cstddef>
|
||||
@@ -485,3 +486,5 @@ inline bool getSignBit(T arg)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // UAVCAN_UTIL_TEMPLATES_HPP_INCLUDED
|
||||
|
||||
Reference in New Issue
Block a user