2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-09 11:32:12 +00:00

Try to get rid of bad link issue while defining global new.

This commit is contained in:
Vicente J. Botet Escriba
2015-05-06 13:51:21 +02:00
parent 87615d54dd
commit 58e8addad6
2 changed files with 8 additions and 8 deletions

View File

@@ -28,9 +28,9 @@
unsigned throw_one = 0xFFFF;
#if defined _GLIBCXX_THROW
void* operator new(std::size_t s) _GLIBCXX_THROW (std::bad_alloc)
inline void* operator new(std::size_t s) _GLIBCXX_THROW (std::bad_alloc)
#elif defined BOOST_MSVC
void* operator new(std::size_t s)
inline void* operator new(std::size_t s)
#else
void* operator new(std::size_t s) throw (std::bad_alloc)
#endif
@@ -41,9 +41,9 @@ void* operator new(std::size_t s) throw (std::bad_alloc)
}
#if defined BOOST_MSVC
void operator delete(void* p)
inline void operator delete(void* p)
#else
void operator delete(void* p) throw ()
inline void operator delete(void* p) throw ()
#endif
{
std::free(p);