summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/build.c b/build.c
index 259c013..c8f94e8 100755
--- a/build.c
+++ b/build.c
@@ -11,6 +11,16 @@ exit $?
#include <stdarg.h>
#include <assert.h>
+#if defined(_WIN32) && !defined(__CYGWIN__)
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+# endif
+# ifndef NOMINMAX
+# define NOMINMAX
+# endif
+# include <windows.h>
+#endif
+
#define PROJECT "kit"
#define SOURCE_LIB "source/kit/_lib.c"
#define FOLDER_TESTS "source/tests/"
@@ -550,16 +560,15 @@ i32 main(i32 argc, c8 **argv) {
}
fflush(stdout);
- printf(" .. clean\n"); fflush(stdout);
system(fmt("\"." DLM "%s" DLM "test_interprocess\" clean", destination));
- printf(" .. reader\n"); fflush(stdout);
- if (OS == WINDOWS)
+
+ if (OS == WINDOWS) {
system(fmt("start "" \"." DLM "%s" DLM "test_interprocess\" reader", destination));
- else
+ } else
system(fmt("\"." DLM "%s" DLM "test_interprocess\" reader &", destination));
- printf(" .. writer\n"); fflush(stdout);
+
code = system(fmt("\"." DLM "%s" DLM "test_interprocess\" writer", destination));
- printf(" .. done\n"); fflush(stdout);
+
if (code == 0)
printf("interprocess - OK\n");
else {