ndnboost: Also rename BOOST_ to NDNBOOST_
diff --git a/include/ndnboost/smart_ptr/detail/quick_allocator.hpp b/include/ndnboost/smart_ptr/detail/quick_allocator.hpp
index 637c4ec..dff0668 100644
--- a/include/ndnboost/smart_ptr/detail/quick_allocator.hpp
+++ b/include/ndnboost/smart_ptr/detail/quick_allocator.hpp
@@ -1,5 +1,5 @@
-#ifndef BOOST_SMART_PTR_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED
-#define BOOST_SMART_PTR_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED
+#ifndef NDNBOOST_SMART_PTR_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED
+#define NDNBOOST_SMART_PTR_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED
// MS compatible compilers support #pragma once
@@ -60,9 +60,9 @@
// varying the page size. g++ 2.96 on Red Hat Linux 7.2,
// for example, passionately dislikes 496. 512 seems OK.
-#if defined(BOOST_QA_PAGE_SIZE)
+#if defined(NDNBOOST_QA_PAGE_SIZE)
- enum { items_per_page = BOOST_QA_PAGE_SIZE / size };
+ enum { items_per_page = NDNBOOST_QA_PAGE_SIZE / size };
#else
@@ -70,7 +70,7 @@
#endif
-#ifdef BOOST_HAS_THREADS
+#ifdef NDNBOOST_HAS_THREADS
static lightweight_mutex & mutex()
{
@@ -89,7 +89,7 @@
static inline void * alloc()
{
-#ifdef BOOST_HAS_THREADS
+#ifdef NDNBOOST_HAS_THREADS
lightweight_mutex::scoped_lock lock( mutex() );
#endif
if(block * x = free)
@@ -119,7 +119,7 @@
}
else
{
-#ifdef BOOST_HAS_THREADS
+#ifdef NDNBOOST_HAS_THREADS
lightweight_mutex::scoped_lock lock( mutex() );
#endif
if(block * x = free)
@@ -144,7 +144,7 @@
{
if(pv != 0) // 18.4.1.1/13
{
-#ifdef BOOST_HAS_THREADS
+#ifdef NDNBOOST_HAS_THREADS
lightweight_mutex::scoped_lock lock( mutex() );
#endif
block * pb = static_cast<block *>(pv);
@@ -161,7 +161,7 @@
}
else if(pv != 0) // 18.4.1.1/13
{
-#ifdef BOOST_HAS_THREADS
+#ifdef NDNBOOST_HAS_THREADS
lightweight_mutex::scoped_lock lock( mutex() );
#endif
block * pb = static_cast<block *>(pv);
@@ -171,7 +171,7 @@
}
};
-#ifdef BOOST_HAS_THREADS
+#ifdef NDNBOOST_HAS_THREADS
template<unsigned size, unsigned align_>
lightweight_mutex * allocator_impl<size, align_>::mutex_init = &allocator_impl<size, align_>::mutex();
@@ -196,4 +196,4 @@
} // namespace ndnboost
-#endif // #ifndef BOOST_SMART_PTR_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED
+#endif // #ifndef NDNBOOST_SMART_PTR_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED