Support Linux builds

This commit is contained in:
leo60228 2022-04-18 19:32:23 -04:00
parent b0ab5f6b6a
commit 85285bb98b
No known key found for this signature in database
GPG Key ID: AC6F4BA078E67833
3 changed files with 22 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.o
WudCompress/WudCompress

13
Makefile Normal file
View File

@ -0,0 +1,13 @@
CXXFLAGS += -D_FILE_OFFSET_BITS=64
WudCompress/WudCompress: WudCompress/main.o WudCompress/wud.o
$(CXX) $(LDFLAGS) -o $@ $^
install: WudCompress/WudCompress
install -d $(DESTDIR)/bin/
install WudCompress/WudCompress $(DESTDIR)/bin/
clean:
rm -f WudCompress/WudCompress WudCompress/main.o WudCompress/wud.o
.PHONY: install

View File

@ -29,4 +29,10 @@ void wud_close(wud_t* wud);
unsigned int wud_readData(wud_t* wud, void* buffer, unsigned int length, long long offset);
bool wud_isWUXCompressed(wud_t* wud);
long long wud_getWUDSize(wud_t* wud);
long long wud_getWUDSize(wud_t* wud);
#ifndef _WIN32
#define _fseeki64 fseeko
#define _ftelli64 ftello
#define stricmp strcasecmp
#endif