jurand/jurand-cxx20.patch

35 lines
1.1 KiB
Diff
Raw Normal View History

diff -auNr jurand-1.3.2-orig/Makefile jurand-1.3.2/Makefile
--- jurand-1.3.2-orig/Makefile 2023-12-14 16:27:32.535474016 +0800
+++ jurand-1.3.2/Makefile 2023-12-14 16:28:45.112770530 +0800
@@ -12,6 +12,9 @@
test: test.sh test-compile
@./$<
+CXXFLAGS += -g -std=gnu++2a -Isrc -Wall -Wextra -Wpedantic -D_GLIBCXX_USE_CXX11_ABI=1
+LDFLAGS += -pthread
+
$(call Executable_file,jurand): $(call Object_file,jurand.cpp)
$(call Executable_file,jurand_test): $(call Object_file,jurand_test.cpp)
diff -auNr jurand-1.3.2-orig/src/java_symbols.hpp jurand-1.3.2/src/java_symbols.hpp
--- jurand-1.3.2-orig/src/java_symbols.hpp 2023-12-14 16:27:32.535474016 +0800
+++ jurand-1.3.2/src/java_symbols.hpp 2023-12-14 16:30:01.613434431 +0800
@@ -636,14 +636,14 @@
if (not parameters.in_place_)
{
- auto osyncstream = std::osyncstream(std::cout);
+ auto oss = std::osyncstream(std::cout);
if (not path.empty())
{
- osyncstream << path.native() << ":\n";
+ oss << path.native() << ":\n";
}
- osyncstream.write(content.c_str(), content.size());
+ oss.write(content.c_str(), content.size());
}
else if (content.size() < original_content.size())
{