Skip to content

Commit

Permalink
Add c++ define in sl_malloc.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs committed Mar 23, 2021
1 parent 2dc0da7 commit dd6e41b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions util/silicon_labs/silabs_core/memory_manager/sl_malloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@
#ifndef SL_MALLOC_H
#define SL_MALLOC_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stddef.h>

void *sl_malloc(size_t size);
void *sl_calloc(size_t nmemb, size_t size);
void *sl_realloc(void * ptr, size_t size);
void sl_free(void * ptr);

#ifdef __cplusplus
}
#endif

#endif // SL_MALLOC_H

0 comments on commit dd6e41b

Please sign in to comment.