Closed VaslD closed 1 year ago
Please consider reopening this issue because the compilation errors were not fixed.
I just pulled the master/main branch (whatever's default these days) and dragged unqlite.{h,c} to a new project. It still compiled with errors if JX9_DISABLE_BUILTIN_FUNC
was set.
In Xcode the first (almost all) SEEK_SET
errors pointed to somewhere lock.l_whence
was used.
P.S.: OK, my bad. The compilation flags I used were: UNQLITE_ENABLE_THREADS
, JX9_DISABLE_BUILTIN_FUNC
, and JX9_DISABLE_DISK_IO
.
Try including <stdio.h>
, and see if the error still persists.
Thanks, it worked. This is the diff I applied:
--- /A/unqlite.c 2023-04-18 22:42:48
+++ /B/unqlite.c 2023-04-27 00:22:18
@@ -111,2 +111,3 @@
#include <stdarg.h> /* needed for the definition of va_list */
+#include <stdio.h>
/*
Compiling on macOS (targeting iOS and Mac Catalyst) fails with "use of undeclared identifier 'SEEK_SET'" if "JX9_DISABLE_BUILTIN_FUNC" is set (
-DJX9_DISABLE_BUILTIN_FUNC
).Removing "JX9_DISABLE_BUILTIN_FUNC" flag solves this error.
Xcode log from a demo project with only Unqlite sources (and default startup Storyboards & View Controllers):
This is the log after removing "JX9_DISABLE_BUILTIN_FUNC" for the same source, in case you need it.