malloc_wrappers_syshdr.h 357 B

123456789101112131415
  1. /* This is just a wrapper in order to get our own malloc wrappers into nanopb core. */
  2. #define pb_realloc(ptr,size) realloc_with_check(ptr,size)
  3. #define pb_free(ptr) free_with_check(ptr)
  4. #ifdef PB_OLD_SYSHDR
  5. #include PB_OLD_SYSHDR
  6. #else
  7. #include <stdint.h>
  8. #include <stddef.h>
  9. #include <stdbool.h>
  10. #include <string.h>
  11. #endif
  12. #include <malloc_wrappers.h>