the @cimport and @cinclude macros have been removed, and including c files has been moved to the zig build system in 0.17.0, besides that these specific headers
const c = @cImport({
@cInclude("fcntl.h");
@cInclude("dirent.h");
@cInclude("unistd.h");
@cInclude("sys/mman.h");
@cInclude("sys/stat.h");
@cInclude("time.h");
});
all have functionality that is built into zig's standard library in a cross platform manner
moving from using the c libs to zigs std would very likley allow using the same platform file for multiple os's, and reduce duplicated code
the
@cimportand@cincludemacros have been removed, and including c files has been moved to the zig build system in 0.17.0, besides that these specific headersall have functionality that is built into zig's standard library in a cross platform manner
moving from using the c libs to zigs std would very likley allow using the same platform file for multiple os's, and reduce duplicated code