Skip to content

Commit

Permalink
mem.h: Avoid warnings when explicitly defining -DSYSTEM_MALLOC
Browse files Browse the repository at this point in the history
(cherry picked from commit a11f9c7)
  • Loading branch information
liviuchircu committed Sep 9, 2022
1 parent 44e6613 commit d98b0b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mem/mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ void *sys_malloc(unsigned long, const char *, const char *, unsigned int);
void *sys_realloc(void *, unsigned long, const char *, const char *, unsigned int);
void sys_free(void *, const char *, const char *, unsigned int);

#ifndef SYSTEM_MALLOC
#define SYSTEM_MALLOC
#endif
#define pkg_malloc_func sys_malloc
#define pkg_malloc(s) sys_malloc((s), __FILE__, __FUNCTION__, __LINE__)
#define func_pkg_relloc sys_realloc
Expand Down

0 comments on commit d98b0b6

Please sign in to comment.