#Is this a zig bug?

1 messages · Page 1 of 1 (latest)

pale jewel
#

what i found somewhere when following the error


// /home/user/.cache/zig/p/N-V-__8AAMLyBADa8ORhUejySKg-yOf9YnHTH7lYkC-ec5-t/include/enet.h:2545:16: warning: unable to translate function, demoted to extern```
#
const en = @cImport({
    @cDefine("ENET_IMPLEMENTATION", {});
    @cInclude("enet.h");
});```

idk if this is correct

heres what its supposed to be in c
```c
#define ENET_IMPLEMENTATION
#include "enet.h"```