Make SJ4 more portable

This commit is contained in:
Nishi 2026-06-22 05:10:51 +09:00
commit 201d9dba0a
7 changed files with 50 additions and 84 deletions

View file

@ -5,7 +5,15 @@
#include <stdarg.h>
#include <stdio.h>
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
int sj4_snprintf(char*, size_t, const char*, ...);
size_t sj4_strlcpy(char*, const char*, size_t);
int sj4_ftruncate(FILE*, size_t);
int sj4_unlink(const char*);
#endif