summaryrefslogtreecommitdiff
path: root/pkmem.h
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-10-12 13:41:15 -0400
committerJonathan Bradley <jcb@pikum.xyz>2024-10-12 13:41:15 -0400
commit926a35c70e160a2843efea6ee3cb39ff5c5791c8 (patch)
tree2a2855aa88a56b20d45a7a3d148d770dc314218d /pkmem.h
parent0385fb79f17dc7e3b4e266049c3db07bdd86dcd6 (diff)
pkmem: move includes
Diffstat (limited to 'pkmem.h')
-rw-r--r--pkmem.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkmem.h b/pkmem.h
index 6a2b93a..4896cf1 100644
--- a/pkmem.h
+++ b/pkmem.h
@@ -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.