Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/version -merge
/config/config.h.in eol=LF
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/zig-cache
/zig-out
/.zig-cache
/zig-out
75 changes: 38 additions & 37 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ pub fn build(b: *std.Build) void {
.HAVE_DECL_STRICMP = 0,
.HAVE_DECL_STRLCPY = 0,
.HAVE_DECL_STRNCASECMP = 0,
.HAVE_DECL_STRNICMP = 0,
.HAVE_DECL_STRNLEN = 0,
.HAVE_DECL_STRNICMP = @as(u32, if (target.result.os.tag == .windows) 1 else 0),
.HAVE_DECL_STRNLEN = @as(u32, if (target.result.os.tag == .windows) 1 else 0),
.HAVE_DECL_STRRCHRNUL = 0,
.HAVE_DECL_STRSEP = 0,
.HAVE_ENDIAN_H = 1,
.HAVE_FACCESSAT = 1,
.HAVE_ENDIAN_H = have(target.result.os.tag != .windows),
.HAVE_FACCESSAT = have(target.result.os.tag != .windows),
.HAVE_FCNTL_H = 1,
.HAVE_FILENO = 1,
.HAVE_FSEEKO = 1,
.HAVE_FSTAT = 1,
.HAVE_FTRUNCATE = 1,
.HAVE_FSEEKO = have(target.result.os.tag != .windows),
.HAVE_FSTAT = have(target.result.os.tag != .windows),
.HAVE_FTRUNCATE = have(target.result.os.tag != .windows),
.HAVE_FUNC_ATTRIBUTE1_ALLOC_SIZE = 1,
.HAVE_FUNC_ATTRIBUTE2_ALLOC_SIZE = null,
.HAVE_FUNC_ATTRIBUTE3_FORMAT = 1,
Expand Down Expand Up @@ -132,40 +132,40 @@ pub fn build(b: *std.Build) void {
.HAVE_HTOLE64 = null,
.HAVE_INTRIN_H = 1,
.HAVE_INTTYPES_H = 1,
.HAVE_IO_H = null,
.HAVE_ISASCII = 1,
.HAVE_ISCNTRL = 1,
.HAVE_MACHINE_ENDIAN_H = 1,
.HAVE_MEMPCPY = 1,
.HAVE_IO_H = have(target.result.os.tag == .windows),
.HAVE_ISASCII = have(target.result.os.tag != .windows),
.HAVE_ISCNTRL = have(target.result.os.tag != .windows),
.HAVE_MACHINE_ENDIAN_H = have(target.result.os.tag != .windows),
.HAVE_MEMPCPY = have(target.result.os.tag != .windows),
.HAVE_MEMPSET = null,
.HAVE_MINIX_CONFIG_H = null,
.HAVE_MMAP = 1,
.HAVE_MMAP = have(target.result.os.tag != .windows),
.HAVE_PATHCONF = null,
.HAVE_REALPATH = 1,
.HAVE_REALPATH = have(target.result.os.tag != .windows),
.HAVE_SNPRINTF = 1,
.HAVE_STAT = 1,
.HAVE_STDARG_H = 1,
.HAVE_STAT = have(target.result.os.tag != .windows),
.HAVE_STDARG_H = have(target.result.os.tag != .windows),
.HAVE_STDBOOL_H = 1,
.HAVE_STDC_INLINE = 1,
.HAVE_STDINT_H = 1,
.HAVE_STDIO_H = 1,
.HAVE_STDC_INLINE = have(target.result.os.tag != .windows),
.HAVE_STDINT_H = have(target.result.os.tag != .windows),
.HAVE_STDIO_H = have(target.result.os.tag != .windows),
.HAVE_STDLIB_H = 1,
.HAVE_STDNORETURN_H = 1,
.HAVE_STRCASECMP = 1,
.HAVE_STRICMP = 1,
.HAVE_STRINGS_H = 1,
.HAVE_STDNORETURN_H = have(target.result.os.tag != .windows),
.HAVE_STRCASECMP = have(target.result.os.tag != .windows),
.HAVE_STRICMP = have(target.result.os.tag != .windows),
.HAVE_STRINGS_H = have(target.result.os.tag != .windows),
.HAVE_STRING_H = 1,
.HAVE_STRLCPY = null,
.HAVE_STRNCASECMP = 1,
.HAVE_STRNICMP = 1,
.HAVE_STRNLEN = 1,
.HAVE_STRNCASECMP = have(target.result.os.tag != .windows),
.HAVE_STRNICMP = have(target.result.os.tag != .windows),
.HAVE_STRNLEN = have(target.result.os.tag == .windows),
.HAVE_STRRCHRNUL = null,
.HAVE_STRSEP = null,
.HAVE_STRUCT_STAT = null,
.HAVE_STRUCT__STATI64 = null,
.HAVE_STRUCT__STATI64 = have(target.result.os.tag == .windows),
.HAVE_SYSCONF = null,
.HAVE_SYS_ENDIAN_H = 1,
.HAVE_SYS_MMAN_H = 1,
.HAVE_SYS_ENDIAN_H = have(target.result.os.tag != .windows),
.HAVE_SYS_MMAN_H = have(target.result.os.tag != .windows),
.HAVE_SYS_PARAM_H = null,
.HAVE_SYS_RESOURCE_H = null,
.HAVE_SYS_STAT_H = 1,
Expand All @@ -174,7 +174,7 @@ pub fn build(b: *std.Build) void {
.HAVE_TYPEOF = null,
.HAVE_UINTPTR_T = 1,
.HAVE_UNISTD_H = null,
.HAVE_VSNPRINTF = null,
.HAVE_VSNPRINTF = have(target.result.os.tag == .windows),
.HAVE_WCHAR_H = null,
.HAVE__ACCESS = null,
.HAVE__BITSCANREVERSE = null,
Expand All @@ -183,13 +183,14 @@ pub fn build(b: *std.Build) void {
.HAVE__BYTESWAP_UINT64 = null,
.HAVE__BYTESWAP_ULONG = null,
.HAVE__BYTESWAP_USHORT = null,
.HAVE__CHSIZE = null,
.HAVE__CHSIZE_S = null,
.HAVE__FILENO = null,
.HAVE__FSEEKI64 = null,
.HAVE__FSTATI64 = null,
.HAVE__FULLPATH = null,
.HAVE__STATI64 = null,
.HAVE__CHSIZE = have(target.result.os.tag == .windows),
.HAVE__CHSIZE_S = have(target.result.os.tag == .windows),
.HAVE__FILENO = have(target.result.os.tag == .windows),
.HAVE__FSEEKI64 = have(target.result.os.tag == .windows),
.HAVE__FSTATI64 = have(target.result.os.tag == .windows),
.HAVE__FULLPATH = have(target.result.os.tag == .windows),
.HAVE__STATI64 = have(target.result.os.tag == .windows),
.HAVE__FILELENGTHI64 = have(target.result.os.tag == .windows),
.HAVE___BSWAP_16 = 1,
.HAVE___BSWAP_32 = 1,
.HAVE___BSWAP_64 = 1,
Expand Down
3 changes: 3 additions & 0 deletions config/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,9 @@
/* Define to 1 if you have the `_fullpath' function. */
#undef HAVE__FULLPATH

/* Define to 1 if you have the `_filelengthi64' function. */
#undef HAVE__FILELENGTHI64

/* Define to 1 if you have the `_stati64' function. */
#undef HAVE__STATI64

Expand Down