summaryrefslogtreecommitdiff
path: root/src/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.h')
-rw-r--r--src/io.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/io.h b/src/io.h
index 87f93b2..a543ae5 100644
--- a/src/io.h
+++ b/src/io.h
@@ -20,6 +20,7 @@
#pragma once
#include <stdint.h>
+#include <stdio.h>
#include <stddef.h>
/* Internal enumerable type for representing the location of a memory
@@ -62,7 +63,7 @@ void stream_xor(struct stream *s, uint8_t initial, uint8_t primary);
size_t stream_tell(struct stream *s);
/* Sets the stream's position indicator to the given `pos`. */
-void stream_seek(struct stream *s, size_t pos);
+void stream_seek(struct stream *s, size_t pos, int whence);
/* Sets the stream's position indicator to the beginning. */
void stream_rewind(struct stream *s);