From d2448d151edad03fb2ca2274cb02426f5fb69582 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 19 May 2024 11:39:07 -0400 Subject: add font loading and rendering to daguerre --- euler/source/io/fseek.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 euler/source/io/fseek.cpp (limited to 'euler/source/io/fseek.cpp') diff --git a/euler/source/io/fseek.cpp b/euler/source/io/fseek.cpp new file mode 100644 index 0000000..3254468 --- /dev/null +++ b/euler/source/io/fseek.cpp @@ -0,0 +1,11 @@ +#include + +namespace std { + + int fseek(FILE *stream, long offset, int origin) { + if (origin < 0 || origin > 2) + return 1; + return stream->try_seek((__euler_seek_from)origin, offset) ? 0 : 2; + } + +} -- cgit v1.2.3