Skip to content

Commit

Permalink
Fix header guards in third-party/pmr/
Browse files Browse the repository at this point in the history
To not use reserved identifiers.  The source of these files is unlikely
to get updated, it was done for a conference.

Thanks to Markus Elfring (a.k.a. elfring).

Related to #11 on GitHub.
  • Loading branch information
xaizek committed Jan 7, 2023
1 parent 97931a8 commit 38edd16
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions third-party/pmr/monolithic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* http://www.boost.org/LICENSE_1_0.txt)
*/

#ifndef PMR__MONOLITHIC_HPP__
#define PMR__MONOLITHIC_HPP__
#ifndef PMR_MONOLITHIC_HPP_
#define PMR_MONOLITHIC_HPP_

#include "pmr_vector.hpp"
#include "polymorphic_allocator.hpp"
Expand Down Expand Up @@ -111,4 +111,4 @@ monolithic::do_is_equal(const memory_resource &other) const noexcept

} // close namespace cpp17

#endif // PMR__MONOLITHIC_HPP__
#endif // PMR_MONOLITHIC_HPP_
6 changes: 3 additions & 3 deletions third-party/pmr/pmr_deque.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* http://www.boost.org/LICENSE_1_0.txt)
*/

#ifndef PMR__PMR_DEQUE_HPP__
#define PMR__PMR_DEQUE_HPP__
#ifndef PMR_PMR_DEQUE_HPP_
#define PMR_PMR_DEQUE_HPP_

#include <deque>

Expand All @@ -22,4 +22,4 @@ namespace pmr {
}
}

#endif // PMR__PMR_DEQUE_HPP__
#endif // PMR_PMR_DEQUE_HPP_
6 changes: 3 additions & 3 deletions third-party/pmr/pmr_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* http://www.boost.org/LICENSE_1_0.txt)
*/

#ifndef PMR__PMR_STRING_HPP__
#define PMR__PMR_STRING_HPP__
#ifndef PMR_PMR_STRING_HPP_
#define PMR_PMR_STRING_HPP_

#include <type_traits>
#include <string>
Expand Down Expand Up @@ -142,4 +142,4 @@ namespace pmr {
} // Close namespace pmr
} // Close namespace cpp17

#endif // PMR__PMR_STRING_HPP__
#endif // PMR_PMR_STRING_HPP_
6 changes: 3 additions & 3 deletions third-party/pmr/pmr_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* http://www.boost.org/LICENSE_1_0.txt)
*/

#ifndef PMR__PMR_VECTOR_HPP__
#define PMR__PMR_VECTOR_HPP__
#ifndef PMR_PMR_VECTOR_HPP_
#define PMR_PMR_VECTOR_HPP_

#include <vector>

Expand All @@ -22,4 +22,4 @@ namespace pmr {
}
}

#endif // PMR__PMR_VECTOR_HPP__
#endif // PMR_PMR_VECTOR_HPP_
6 changes: 3 additions & 3 deletions third-party/pmr/polymorphic_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* http://www.boost.org/LICENSE_1_0.txt)
*/

#ifndef PMR__POLYMORPHIC_ALLOCATOR_HPP__
#define PMR__POLYMORPHIC_ALLOCATOR_HPP__
#ifndef PMR_POLYMORPHIC_ALLOCATOR_HPP_
#define PMR_POLYMORPHIC_ALLOCATOR_HPP_

#include <atomic>
#include <memory>
Expand Down Expand Up @@ -474,4 +474,4 @@ bool __pmrd::operator!=(const __pmrd::polymorphic_allocator_imp<T1>& a,

} // close namespace cpp17

#endif // PMR__POLYMORPHIC_ALLOCATOR_HPP__
#endif // PMR_POLYMORPHIC_ALLOCATOR_HPP_

0 comments on commit 38edd16

Please sign in to comment.