Skip to content

@cinclude #5

@mintoya

Description

@mintoya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions