summaryrefslogtreecommitdiff
path: root/tools/preproc
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2017-02-03 20:34:51 -0800
committerYamaArashi <shadow962@live.com>2017-02-03 20:34:51 -0800
commit18e21f8b090a49934a80d56b1796e0c1d469a22c (patch)
tree26749c8b642da57e4a1997c9043f77b4d664179f /tools/preproc
parent6a66bda6c1fd80360fa21ff5658550cd5c92edfe (diff)
remove C++14 feature from tools
Diffstat (limited to 'tools/preproc')
-rw-r--r--tools/preproc/Makefile2
-rw-r--r--tools/preproc/c_file.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/preproc/Makefile b/tools/preproc/Makefile
index 24f60e3f6..2d577c79f 100644
--- a/tools/preproc/Makefile
+++ b/tools/preproc/Makefile
@@ -1,6 +1,6 @@
CXX := g++
-CXXFLAGS := -std=c++14 -O2 -Wall -Wno-switch
+CXXFLAGS := -std=c++11 -O2 -Wall -Wno-switch
SRCS := asm_file.cpp c_file.cpp charmap.cpp preproc.cpp string_parser.cpp \
utf8.cpp
diff --git a/tools/preproc/c_file.cpp b/tools/preproc/c_file.cpp
index 3b4024efe..a2f178623 100644
--- a/tools/preproc/c_file.cpp
+++ b/tools/preproc/c_file.cpp
@@ -256,7 +256,7 @@ std::unique_ptr<unsigned char[]> CFile::ReadWholeFile(const std::string& path, i
size = ftell(fp);
- std::unique_ptr<unsigned char[]> buffer = std::make_unique<unsigned char[]>(size);
+ std::unique_ptr<unsigned char[]> buffer = std::unique_ptr<unsigned char[]>(new unsigned char[size]);
rewind(fp);