(Zig 0.16.0)
$ echo '#include <stdlib.h>' >test.c
$ zig translate-c -target x86_64-netbsd test.c -lc
error: translation failure
lib/libc/include/generic-netbsd/sys/endian.h:74:1: error: unknown type name 'pragma'
__END_DECLS
^
lib/libc/include/generic-netbsd/sys/cdefs.h:432:22: note: expanded from here
#define __END_DECLS __END_PUBLIC_DECLS
^
lib/libc/include/generic-netbsd/sys/cdefs.h:413:45: note: expanded from here
# define __END_PUBLIC_DECLS __END_EXTERN_C _Pragma("GCC visibility pop")
^
<scratch space>:5:2: note: expanded from here
#pragma GCC visibility pop
[...]
(Zig 0.16.0)
```
$ echo '#include <stdlib.h>' >test.c
$ zig translate-c -target x86_64-netbsd test.c -lc
error: translation failure
lib/libc/include/generic-netbsd/sys/endian.h:74:1: error: unknown type name 'pragma'
__END_DECLS
^
lib/libc/include/generic-netbsd/sys/cdefs.h:432:22: note: expanded from here
#define __END_DECLS __END_PUBLIC_DECLS
^
lib/libc/include/generic-netbsd/sys/cdefs.h:413:45: note: expanded from here
# define __END_PUBLIC_DECLS __END_EXTERN_C _Pragma("GCC visibility pop")
^
<scratch space>:5:2: note: expanded from here
#pragma GCC visibility pop
[...]
```