diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-10-12 13:41:15 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-10-12 13:41:15 -0400 |
| commit | 926a35c70e160a2843efea6ee3cb39ff5c5791c8 (patch) | |
| tree | 2a2855aa88a56b20d45a7a3d148d770dc314218d /pkmem.h | |
| parent | 0385fb79f17dc7e3b4e266049c3db07bdd86dcd6 (diff) | |
pkmem: move includes
Diffstat (limited to 'pkmem.h')
| -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. |
