diff options
| -rw-r--r-- | pkmem.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4,9 +4,7 @@ #include "./pkmem-types.h" #include "./pkmacros.h" -#include <string.h> #include <stdint.h> -#include <stdio.h> #include <stdlib.h> #ifndef PK_DEFAULT_BUCKET_SIZE @@ -33,7 +31,6 @@ void* pk_new_bkt(size_t sz, size_t alignment, struct pk_membucket* bkt); void pk_delete_base(const void* ptr, size_t sz); void pk_delete_bkt(const void* ptr, size_t sz, struct pk_membucket* bkt); -static inline void stupid_header_warnings() { (void)stdout; } #if defined(__cplusplus) @@ -111,9 +108,13 @@ pk_delete(const T* ptr, long count, pk_membucket* bucket = nullptr) #ifdef PK_IMPL_MEM +#include <string.h> +#include <stdio.h> #include <threads.h> #include <assert.h> +static inline void pkmem_stupid_header_warnings() { (void)stdout; } + #if defined(PK_MEMORY_DEBUGGER) /* * Note that certain aspects of this expect that you only have one non-transient bucket. |
