aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/buffer.h b/include/buffer.h
index 84e0cfa..5339108 100644
--- a/include/buffer.h
+++ b/include/buffer.h
@@ -8,12 +8,12 @@
#define BUFFER_ALLOC_FAIL -1
typedef struct {
- struct ScopedAllocator *allocator;
char* data;
usize size;
usize capacity;
} Buffer;
+struct ScopedAllocator;
CHECK_RESULT int buffer_init(Buffer *self, struct ScopedAllocator *allocator);
CHECK_RESULT int buffer_append(Buffer *self, void *data, usize size);