2026-06-21 16:55:56 +09:00
|
|
|
#ifndef __SJ4COMPAT_H__
|
|
|
|
|
#define __SJ4COMPAT_H__
|
|
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
2026-06-22 05:10:51 +09:00
|
|
|
#ifdef _WIN32
|
|
|
|
|
#include <io.h>
|
|
|
|
|
#else
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2026-06-21 16:55:56 +09:00
|
|
|
int sj4_snprintf(char*, size_t, const char*, ...);
|
|
|
|
|
size_t sj4_strlcpy(char*, const char*, size_t);
|
2026-06-22 05:10:51 +09:00
|
|
|
int sj4_ftruncate(FILE*, size_t);
|
|
|
|
|
int sj4_unlink(const char*);
|
2026-06-21 16:55:56 +09:00
|
|
|
|
|
|
|
|
#endif
|