summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-05 05:23:45 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-05 05:23:45 +0200
commitede5f94aca6907f4d49c1b2c8d09d31d71b22749 (patch)
tree2dcd0784fab1d6e3c7a498b4fbed6a07272d70af
parent8617a63ddcc6b1177a1c5b9ebda3287d0547780e (diff)
downloadkit-ede5f94aca6907f4d49c1b2c8d09d31d71b22749.zip
test
-rw-r--r--build_and_test.sh28
-rw-r--r--source/kit/file.c5
2 files changed, 16 insertions, 17 deletions
diff --git a/build_and_test.sh b/build_and_test.sh
index c80c6e8..b2002c9 100644
--- a/build_and_test.sh
+++ b/build_and_test.sh
@@ -7,22 +7,26 @@ COMPILEPP=g++
OBJ_POSTFIX=.o
EXE_POSTFIX=
-if command -v cl.exe >/dev/null 2>&1; then
- echo "C compiler found - MSVC"
+UNAME=$(command -v uname)
+
+echo "UNAME: ${UNAME}"
+
+#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
- echo "C compiler found - GCC"
-elif command -v clang >/dev/null 2>&1; then
- echo "C compiler found - Clang"
- COMPILE=clang
- COMPILEPP=clang
-else
- echo "C compiler not found"
- exit 1
-fi
+#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"
+# COMPILE=clang
+# COMPILEPP=clang
+#else
+# echo "C compiler not found"
+# exit 1
+#fi
echo ""
diff --git a/source/kit/file.c b/source/kit/file.c
index e08e753..2d52e92 100644
--- a/source/kit/file.c
+++ b/source/kit/file.c
@@ -11,12 +11,7 @@ enum { PATH_BUF_SIZE = 4096 };
# define WIN32_LEAN_AND_MEAN 1
# endif
# include <stdint.h>
-
# include <Windows.h>
-
-# include <Shlwapi.h>
-
-# pragma comment(lib, "Shlwapi.lib")
#else
# include <dirent.h>
# include <sys/stat.h>