Skip to content

Commit 0f258b9

Browse files
committed
Support Linux builds
1 parent b0ab5f6 commit 0f258b9

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
WudCompress/WudCompress: WudCompress/main.o WudCompress/wud.o
2+
$(CXX) $(LDFLAGS) -o $@ $^
3+
4+
install: WudCompress/WudCompress
5+
install -d $(DESTDIR)/bin/
6+
install WudCompress/WudCompress $(DESTDIR)/bin/
7+
8+
clean:
9+
rm -f WudCompress/WudCompress WudCompress/main.o WudCompress/wud.o
10+
11+
.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)