Make SJ4 more portable
This commit is contained in:
parent
df18e66b18
commit
201d9dba0a
7 changed files with 50 additions and 84 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue