xtumu/vm-storage / ttyd /src /compat.h
xtumu's picture
download
raw
404 Bytes
/* compat.h -- MSVC compatibility shims for POSIX functions */
#ifndef TTYD_COMPAT_H
#define TTYD_COMPAT_H
#ifdef _MSC_VER
#include <string.h>
#include <sys/stat.h>
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#ifndef S_ISDIR
#define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
#endif
#ifndef S_ISREG
#define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
#endif
#endif
#endif /* TTYD_COMPAT_H */

Xet Storage Details

Size:
404 Bytes
·
Xet hash:
7eae67e3d5b33f7d3ddd00d91ccb9619878f8e672537783a95bf44896a2f648a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.