mirror of
https://github.com/Prof9/WfcReplay.git
synced 2026-09-08 18:15:48 -05:00
linux compatibility for blz.c
This commit is contained in:
13
BLZ/blz.c
13
BLZ/blz.c
@@ -21,6 +21,19 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __linux
|
||||
#define strcmpi strcasecmp
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
long filelength(int fd)
|
||||
{
|
||||
struct stat st;
|
||||
fstat(fd, &st);
|
||||
return st.st_size;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
#define CMD_DECODE 0x00 // decode
|
||||
#define CMD_ENCODE 0x01 // encode
|
||||
|
||||
Reference in New Issue
Block a user