Skip to content

Commit ad387ef

Browse files
committed
Surround stubs in include guards
1 parent e13583f commit ad387ef

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cpp/common/test/includes/standard-library/tuple.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _GHLIBCPP_UTILITY
2+
#define _GHLIBCPP_UTILITY
3+
14
namespace std {
25
// Definition
36
template <typename... T1> class tuple {};
@@ -10,3 +13,5 @@ struct ignore_t {
1013
};
1114
inline const std::ignore_t ignore; // 'const' only until C++17
1215
} // namespace std
16+
17+
#endif // _GHLIBCPP_UTILITY

cpp/common/test/includes/standard-library/utility.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _GHLIBCPP_UTILITY
2+
#define _GHLIBCPP_UTILITY
3+
14
#include "type_traits.h"
25

36
namespace std {
@@ -30,3 +33,5 @@ constexpr auto get(const std::pair<T, U> &p) noexcept {
3033
}
3134
}
3235
} // namespace std
36+
37+
#endif // _GHLIBCPP_UTILITY

0 commit comments

Comments
 (0)