wip
Some checks are pending
pyrite-dev/taiga/pipeline/head Build queued...

This commit is contained in:
Nishi 2026-03-01 23:36:33 +09:00
commit 930fa5dbad
Signed by: nishi
GPG key ID: 27EF69B208EB9343
5 changed files with 100 additions and 0 deletions

View file

@ -4,10 +4,35 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _WIN32
#include <direct.h>
#include <io.h>
#else
#include <unistd.h>
#include <dirent.h>
#endif
#ifdef _WIN32
#define io_mkdir(x,y) _mkdir(x)
#define io_chdir(x) _chdir(x)
#define io_stat _stat
#define IO_S_ISDIR(m) ((m) & _S_IFDIR)
#else
#define io_mkdir mkdir
#define io_chdir chdir
#define io_stat stat
#define IO_S_ISDIR(m) ((m) & S_IFDIR)
#define IO_DIR DIR
#define io_dirent dirent
#define io_opendir opendir
#define io_readdir readdir
#define io_closedir closedir
#endif
/* site.c */
@ -19,4 +44,7 @@ int action_help(int argc, char** argv);
/* seed.c */
int action_seed(int argc, char** argv);
/* util.c */
char* u_strvacat(const char* str, ...);
#endif