aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-10-19 18:27:06 -0400
committerJack Lloyd <[email protected]>2019-10-19 18:27:06 -0400
commit7b3453963dac1a8f45354343b0af26535aea21ae (patch)
tree6cef84f35a29a5efd5d6fb2bc7c7bb0b41604e66 /src
parent98ad2ea0ff257efedcb4e4b818595e2e6387919f (diff)
parentb209eb67b3d69da33eef53f1cd0d4cda84abde7c (diff)
Merge GH #2166 Prefix macro with BOTAN_
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils/mem_ops.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/utils/mem_ops.h b/src/lib/utils/mem_ops.h
index 4206875b2..8878603fc 100644
--- a/src/lib/utils/mem_ops.h
+++ b/src/lib/utils/mem_ops.h
@@ -118,9 +118,9 @@ template<typename T> inline void clear_mem(T* ptr, size_t n)
// is_trivially_copyable is missing in g++ < 5.0
#if !__clang__ && __GNUG__ && __GNUC__ < 5
-#define IS_TRIVIALLY_COPYABLE(T) true
+#define BOTAN_IS_TRIVIALLY_COPYABLE(T) true
#else
-#define IS_TRIVIALLY_COPYABLE(T) std::is_trivially_copyable<T>::value
+#define BOTAN_IS_TRIVIALLY_COPYABLE(T) std::is_trivially_copyable<T>::value
#endif
/**
@@ -140,7 +140,7 @@ template<typename T> inline void copy_mem(T* out, const T* in, size_t n)
template<typename T> inline void typecast_copy(uint8_t out[], T in[], size_t N)
{
- static_assert(IS_TRIVIALLY_COPYABLE(T), "");
+ static_assert(BOTAN_IS_TRIVIALLY_COPYABLE(T), "");
std::memcpy(out, in, sizeof(T)*N);
}
@@ -163,7 +163,7 @@ template<typename T> inline void typecast_copy(T& out, const uint8_t in[])
template <class To, class From> inline To typecast_copy(const From *src) noexcept
{
- static_assert(IS_TRIVIALLY_COPYABLE(From) && std::is_trivial<To>::value, "");
+ static_assert(BOTAN_IS_TRIVIALLY_COPYABLE(From) && std::is_trivial<To>::value, "");
To dst;
std::memcpy(&dst, src, sizeof(To));
return dst;