summaryrefslogtreecommitdiff
path: root/src/kernel_preprocessor.cpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-12-10 13:31:57 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-12-10 13:31:57 +0100
commit9112e587aeefe5ec69bbc9e684ca69f2ac04df17 (patch)
tree7e9307e75e9c8a18cd999ad794267c2a7be96ae5 /src/kernel_preprocessor.cpp
parent9f02fb542ca659bf58d1efefdb334ea386ef10e8 (diff)
Fixed an Android compilation issue
Diffstat (limited to 'src/kernel_preprocessor.cpp')
-rw-r--r--src/kernel_preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel_preprocessor.cpp b/src/kernel_preprocessor.cpp
index 46b6f3df..42804040 100644
--- a/src/kernel_preprocessor.cpp
+++ b/src/kernel_preprocessor.cpp
@@ -285,7 +285,7 @@ std::vector<std::string> PreprocessDefinesAndComments(const std::string& source,
const auto max_depth_defines = 30;
auto disabled = std::vector<unsigned int>(max_depth_defines, 0);
auto depth = size_t{0};
- auto source_stream = std::stringstream(source);
+ std::stringstream source_stream(source);
auto line = std::string{""};
while (std::getline(source_stream, line)) {
//printf("[@%zu] disabled=%d '%s'\n", depth, disabled[depth], line.c_str());