SHA256
1
0
forked from pool/jurand
jurand/jurand-cxx20.patch

35 lines
1.2 KiB
Diff
Raw Normal View History

diff -urEbwB jurand-1.3.1.orig/Makefile jurand-1.3.1/Makefile
--- jurand-1.3.1.orig/Makefile 2023-09-27 07:17:18.384159160 +0200
+++ jurand-1.3.1/Makefile 2023-09-27 08:55:18.229794175 +0200
@@ -12,7 +12,8 @@
test: test.sh test-compile
@./$<
-CXXFLAGS += -g -std=c++2a -Isrc -Wall -Wextra -Wpedantic
+CXXFLAGS += -g -std=gnu++2a -Isrc -Wall -Wextra -Wpedantic -D_GLIBCXX_USE_CXX11_ABI=1
+LDFLAGS += -pthread
$(eval $(call Variable_rule,target/compile_flags,$(CXX) $(CXXFLAGS)))
$(eval $(call Variable_rule,target/link_flags,$(CXX) $(LDFLAGS) $(LDLIBS)))
diff -urEbwB jurand-1.3.1.orig/src/java_symbols.hpp jurand-1.3.1/src/java_symbols.hpp
--- jurand-1.3.1.orig/src/java_symbols.hpp 2023-09-27 07:17:18.384159160 +0200
+++ jurand-1.3.1/src/java_symbols.hpp 2023-09-27 08:42:56.218651442 +0200
@@ -630,14 +630,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())
{