[failing-alloc] Make it compile as C++ as well

This commit is contained in:
Behdad Esfahbod 2022-01-04 14:18:38 -07:00
parent bea5369c6d
commit 0a5c1c9705
1 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,10 @@
#include <stdlib.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
int alloc_state = 0;
__attribute__((no_sanitize("integer")))
@ -55,3 +59,7 @@ void hb_free_impl (void *ptr)
{
return free (ptr);
}
#ifdef __cplusplus
}
#endif