mirror of
https://github.com/ksherlock/profuse.git
synced 2025-02-08 12:30:25 +00:00
better linux/g++ compatibility
This commit is contained in:
parent
3885c06698
commit
b4ce209d83
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.o
|
||||
o/
|
@ -2,6 +2,7 @@
|
||||
#include <algorithm>
|
||||
#include <cerrno>
|
||||
#include <cstring>
|
||||
#include <cstddef>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
|
3
Makefile
3
Makefile
@ -1,5 +1,6 @@
|
||||
CC = c++
|
||||
CPPFLAGS += -Wall -W -Wno-multichar -Wno-c++11-narrowing -I. -O2 -g -std=c++11
|
||||
CPPFLAGS += -Wall -W -Wno-multichar -Wno-unused-parameter -Wno-unknown-pragmas -Wno-narrowing -I. -O2 -g -std=c++11
|
||||
LDFLAGS += -pthread
|
||||
UNAME = $(shell uname -s)
|
||||
|
||||
ifeq ($(UNAME),Darwin)
|
||||
|
@ -742,7 +742,7 @@ int action_get(int argc, char **argv, Pascal::VolumeEntry *volume)
|
||||
|
||||
|
||||
|
||||
File::File file(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
|
||||
File file(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
|
||||
|
||||
unsigned fileSize = entry->fileSize();
|
||||
unsigned offset = 0;
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <cctype>
|
||||
#include <cstddef>
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <cctype>
|
||||
#include <cstddef>
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user