diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-05 04:58:37 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-05 04:58:37 +0200 |
commit | e14e1d270cd25ebf02be66e9748e4b84ecbc4408 (patch) | |
tree | 87439811b6622a675e293eb29fed0be5f6dff92a | |
parent | 2a2b00777f312db7eb39e7d0f620c6382313a31c (diff) | |
download | kit-e14e1d270cd25ebf02be66e9748e4b84ecbc4408.zip |
windows fix
-rw-r--r-- | build_and_test.sh | 4 | ||||
-rw-r--r-- | source/kit_test/bench.c | 2 | ||||
-rw-r--r-- | source/kit_test/test.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/build_and_test.sh b/build_and_test.sh index 00e8bba..c80c6e8 100644 --- a/build_and_test.sh +++ b/build_and_test.sh @@ -7,13 +7,13 @@ COMPILEPP=g++ OBJ_POSTFIX=.o EXE_POSTFIX= -if command -v cl.exe >/dev/null 2>&1; then +if command -v cl.exe >/dev/null 2>&1; then echo "C compiler found - MSVC" COMPILE=cl.exe COMPILEPP=cl.exe OBJ_POSTFIX=.obj EXE_POSTFIX=.exe -elif command -v gcc >/dev/null 2>&1; then +elif command -v gcc >/dev/null 2>&1; then echo "C compiler found - GCC" elif command -v clang >/dev/null 2>&1; then echo "C compiler found - Clang" diff --git a/source/kit_test/bench.c b/source/kit_test/bench.c index cdd69d9..9386bfe 100644 --- a/source/kit_test/bench.c +++ b/source/kit_test/bench.c @@ -77,7 +77,7 @@ static void kit_bench_setup_signals() { for (i = 0; i < sizeof signums / sizeof *signums; i++) { #if (defined(_WIN32) && !defined(__CYGWIN__)) || \ !defined(_POSIX_C_SOURCE) - signal(signums[i], handle_signal); + signal(signums[i], kit_bench_handle_signal); #else struct sigaction action; memset(&action, 0, sizeof action); diff --git a/source/kit_test/test.c b/source/kit_test/test.c index 034d1e7..41ee715 100644 --- a/source/kit_test/test.c +++ b/source/kit_test/test.c @@ -48,7 +48,7 @@ static void kit_test_setup_signals() { for (i = 0; i < sizeof signums / sizeof *signums; i++) { #if (defined(_WIN32) && !defined(__CYGWIN__)) || \ !defined(_POSIX_C_SOURCE) - signal(signums[i], handle_signal); + signal(signums[i], kit_test_handle_signal); #else struct sigaction action; memset(&action, 0, sizeof action); |