diff options
author | YamaArashi <shadow962@live.com> | 2017-02-03 20:34:51 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2017-02-03 20:34:51 -0800 |
commit | 18e21f8b090a49934a80d56b1796e0c1d469a22c (patch) | |
tree | 26749c8b642da57e4a1997c9043f77b4d664179f /tools/scaninc | |
parent | 6a66bda6c1fd80360fa21ff5658550cd5c92edfe (diff) |
remove C++14 feature from tools
Diffstat (limited to 'tools/scaninc')
-rw-r--r-- | tools/scaninc/Makefile | 2 | ||||
-rw-r--r-- | tools/scaninc/c_file.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/scaninc/Makefile b/tools/scaninc/Makefile index c408e4a6e..71c4389ef 100644 --- a/tools/scaninc/Makefile +++ b/tools/scaninc/Makefile @@ -1,6 +1,6 @@ CXX = g++ -CXXFLAGS = -Wall -std=c++14 -O2 +CXXFLAGS = -Wall -std=c++11 -O2 SRCS = scaninc.cpp c_file.cpp asm_file.cpp diff --git a/tools/scaninc/c_file.cpp b/tools/scaninc/c_file.cpp index 970fbe135..bb84fedbe 100644 --- a/tools/scaninc/c_file.cpp +++ b/tools/scaninc/c_file.cpp @@ -222,7 +222,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); |