Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

tests: test_own_file's POSIX helper only where it is used

JustVugg44a8e8aeaaf5
diff --git a/c/tests/test_own_file.c b/c/tests/test_own_file.c
index f02170e6..b463a889 100644
--- a/c/tests/test_own_file.c
+++ b/c/tests/test_own_file.c
@@ -36,12 +36,14 @@ static const char *at(const char *name){
return path[k];
}
+#ifndef _WIN32
static int put(const char *path, const char *text){
FILE *f = fopen(path, "wb");
if(!f) return -1;
fputs(text, f);
return fclose(f);
}
+#endif
/* the file's bytes, or "" when it cannot be read */
static const char *get(const char *path){