mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
replace __BEGIN_DECLS with extern "C"
This commit is contained in:
parent
7c5c768e2f
commit
8dc6057ad2
1 changed files with 6 additions and 2 deletions
|
@ -5,7 +5,9 @@
|
||||||
|
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef H_MALLOC_PREFIX
|
#ifndef H_MALLOC_PREFIX
|
||||||
#define h_malloc malloc
|
#define h_malloc malloc
|
||||||
|
@ -116,6 +118,8 @@ size_t h_malloc_object_size_fast(void *ptr);
|
||||||
// passed size matches the allocated size.
|
// passed size matches the allocated size.
|
||||||
void h_free_sized(void *ptr, size_t expected_size);
|
void h_free_sized(void *ptr, size_t expected_size);
|
||||||
|
|
||||||
__END_DECLS
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue