better linux/g++ compatibility

This commit is contained in:
Kelvin Sherlock 2016-08-16 13:06:12 -04:00
parent 3885c06698
commit b4ce209d83
6 changed files with 8 additions and 2 deletions

2
.gitignore vendored Normal file
View File

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

View File

@ -2,6 +2,7 @@
#include <algorithm>
#include <cerrno>
#include <cstring>
#include <cstddef>
#include <sys/types.h>
#include <sys/mman.h>

View File

@ -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)

View File

@ -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;

View File

@ -2,6 +2,7 @@
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cstddef>
#include <vector>
#include <string>

View File

@ -18,6 +18,7 @@
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cstddef>
#include <vector>
#include <string>