[failing-alloc] Make it compile as C++ as well
This commit is contained in:
parent
bea5369c6d
commit
0a5c1c9705
|
@ -25,6 +25,10 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
int alloc_state = 0;
|
int alloc_state = 0;
|
||||||
|
|
||||||
__attribute__((no_sanitize("integer")))
|
__attribute__((no_sanitize("integer")))
|
||||||
|
@ -55,3 +59,7 @@ void hb_free_impl (void *ptr)
|
||||||
{
|
{
|
||||||
return free (ptr);
|
return free (ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue