Skip to content

Commit 5929198

Browse files
committed
Support Linux builds
1 parent b0ab5f6 commit 5929198

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.o
2+
WudCompress/WudCompress

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
CXXFLAGS := -D_FILE_OFFSET_BITS=64
2+
3+
WudCompress/WudCompress: WudCompress/main.o WudCompress/wud.o
4+
$(CXX) $(LDFLAGS) -o $@ $^
5+
6+
install: WudCompress/WudCompress
7+
install -d $(DESTDIR)/bin/
8+
install WudCompress/WudCompress $(DESTDIR)/bin/
9+
10+
clean:
11+
rm -f WudCompress/WudCompress WudCompress/main.o WudCompress/wud.o
12+
13+
.PHONY: install

WudCompress/wud.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ void wud_close(wud_t* wud);
2929

3030
unsigned int wud_readData(wud_t* wud, void* buffer, unsigned int length, long long offset);
3131
bool wud_isWUXCompressed(wud_t* wud);
32-
long long wud_getWUDSize(wud_t* wud);
32+
long long wud_getWUDSize(wud_t* wud);
33+
34+
#ifndef _WIN32
35+
#define _fseeki64 fseeko
36+
#define _ftelli64 ftello
37+
#define stricmp strcasecmp
38+
#endif

0 commit comments

Comments
 (0)