I am trying to migrate my fork of the Thanatos project over to version 0.16.0 and wanted to future-proof it by removing the use of @cImport and migrating in accordance with the 0.16 release notes recommendation.
Importing sqlite3 works fine this way, but importing gtk runs into this issue.
Error before importing:
src/webview.zig:41:14: error: root source file struct 'c' has no member named 'gtk_init'
_ = c.gtk_init(null, null);
After importing (include <gtk/gtk.h>)
/nix/store/fl75ki4bwr8lj8w63c1yr4v3np177sv7-gtk+3-3.24.52-dev/include/gtk-3.0/gtk/gtk-autocleanups.h:204:1: error: expected ';', found 'an identifier'
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWidgetPath, gtk_widget_path_unref)
...
/nix/store/fl75ki4bwr8lj8w63c1yr4v3np177sv7-gtk+3-3.24.52-dev/include/gtk-3.0/gtk/gtk-autocleanups.h:204:1: error: unknown type name 'diagnostic'
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWidgetPath, gtk_widget_path_unref)
...
There are many more errors like this and in total it encounters:
error: 5926 compilation errors
All of these errors seem to do with c macros being improperly translated, but there are far too many for me to read through as it takes up the entire scrollable height of my terminal. Any help would be appreciated