[algs] include <new>
This commit is contained in:
parent
4c6fd7cdb2
commit
30c05e8b55
|
@ -36,6 +36,7 @@
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <initializer_list>
|
#include <initializer_list>
|
||||||
|
#include <new>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Flags
|
* Flags
|
||||||
|
|
|
@ -73,7 +73,6 @@ typedef CRITICAL_SECTION hb_mutex_impl_t;
|
||||||
#elif !defined(HB_NO_MT)
|
#elif !defined(HB_NO_MT)
|
||||||
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <new>
|
|
||||||
typedef std::mutex hb_mutex_impl_t;
|
typedef std::mutex hb_mutex_impl_t;
|
||||||
#define hb_mutex_impl_init(M) HB_STMT_START { new (M) hb_mutex_impl_t; } HB_STMT_END
|
#define hb_mutex_impl_init(M) HB_STMT_START { new (M) hb_mutex_impl_t; } HB_STMT_END
|
||||||
#define hb_mutex_impl_lock(M) (M)->lock ()
|
#define hb_mutex_impl_lock(M) (M)->lock ()
|
||||||
|
|
Loading…
Reference in New Issue