Revert "[cplusplus] Internally allow using hb_unique_ptr with hb_free()"
This reverts commit b5f621b08d
.
A build was failing with clang 14 for Firefox apparently, sigh.
https://github.com/harfbuzz/harfbuzz/issues/3647
This commit is contained in:
parent
9fc9b1ece4
commit
17c80035ad
15
src/hb.hh
15
src/hb.hh
|
@ -466,23 +466,10 @@ static_assert ((sizeof (hb_mask_t) == 4), "");
|
||||||
static_assert ((sizeof (hb_var_int_t) == 4), "");
|
static_assert ((sizeof (hb_var_int_t) == 4), "");
|
||||||
|
|
||||||
|
|
||||||
#include "hb-cplusplus.hh"
|
|
||||||
|
|
||||||
namespace hb {
|
|
||||||
|
|
||||||
// Allow using hb::unique_ptr with hb_free() internally.
|
|
||||||
template <typename T>
|
|
||||||
struct vtable
|
|
||||||
{
|
|
||||||
static constexpr auto destroy = hb_free;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Headers we include for everyone. Keep topologically sorted by dependency.
|
/* Headers we include for everyone. Keep topologically sorted by dependency.
|
||||||
* They express dependency amongst themselves, but no other file should include
|
* They express dependency amongst themselves, but no other file should include
|
||||||
* them directly.*/
|
* them directly.*/
|
||||||
|
#include "hb-cplusplus.hh"
|
||||||
#include "hb-meta.hh"
|
#include "hb-meta.hh"
|
||||||
#include "hb-mutex.hh"
|
#include "hb-mutex.hh"
|
||||||
#include "hb-number.hh"
|
#include "hb-number.hh"
|
||||||
|
|
Loading…
Reference in New Issue