diff --git a/build.zig b/build.zig index d26f1ca..5457506 100644 --- a/build.zig +++ b/build.zig @@ -13,6 +13,7 @@ const cppflags = [_][]const u8{ "-Wno-deprecated-declarations", "-Wno-unqualified-std-cast-call", "-Wno-bitwise-instead-of-logical", //for notcurses + "-Wno-unused-command-line-argument", //zig passes -fno-rtlib-defaultlib when cross-compiling to windows "-fno-sanitize=undefined", "-gen-cdb-fragment-path", ".cache/cdb", diff --git a/include/thespian/backtrace.h b/include/thespian/backtrace.h index c93a082..f3f8013 100644 --- a/include/thespian/backtrace.h +++ b/include/thespian/backtrace.h @@ -12,9 +12,11 @@ void install_remote_debugger(); void install_backtrace(); void install_jitdebugger(); +#if !defined(_WIN32) void sighdl_debugger(int no, siginfo_t * /*sigi*/, void * /*uco*/); void sighdl_remote_debugger(int no, siginfo_t * /*sigi*/, void * /*uco*/); void sighdl_backtrace(int no, siginfo_t * /*sigi*/, void * /*uco*/); +#endif #ifdef __cplusplus } diff --git a/include/thespian/c/tcp.h b/include/thespian/c/tcp.h index 8f73f38..ffe18af 100644 --- a/include/thespian/c/tcp.h +++ b/include/thespian/c/tcp.h @@ -6,7 +6,11 @@ extern "C" { #endif #include +#if defined(_WIN32) +#include +#else #include +#endif #include struct thespian_tcp_acceptor_handle; diff --git a/test/ip_tcp_client_server_c.cpp b/test/ip_tcp_client_server_c.cpp index 5507216..1885039 100644 --- a/test/ip_tcp_client_server_c.cpp +++ b/test/ip_tcp_client_server_c.cpp @@ -7,7 +7,9 @@ #include #include +#ifndef _WIN32 #include +#endif #include // ---------------------------------------------------------------------------