From b6cc085dce9bbef96c63bde511027658fd5c2f83 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Tue, 22 Sep 2020 21:17:33 +0000 Subject: Fix compilation on i386 The error was: In file included from lbfgs.cpp:29: ./common.h:216:18: error: class member cannot be redeclared string_buffer& operator<<(size_t _n) { _UITOA(_n); } ^ ./common.h:214:18: note: previous definition is here string_buffer& operator<<(unsigned int _n) { _UITOA(_n); } ^ --- science/crf++/files/patch-common.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 science/crf++/files/patch-common.h (limited to 'science/crf++/files') diff --git a/science/crf++/files/patch-common.h b/science/crf++/files/patch-common.h new file mode 100644 index 000000000000..cf68fa07b60f --- /dev/null +++ b/science/crf++/files/patch-common.h @@ -0,0 +1,11 @@ +--- common.h.orig 2020-09-22 21:00:58 UTC ++++ common.h +@@ -211,7 +211,7 @@ class string_buffer: public std::string { + string_buffer& operator<<(int _n) { _ITOA(_n); } + string_buffer& operator<<(long int _n) { _ITOA(_n); } + string_buffer& operator<<(unsigned short int _n) { _UITOA(_n); } +- string_buffer& operator<<(unsigned int _n) { _UITOA(_n); } ++ // string_buffer& operator<<(unsigned int _n) { _UITOA(_n); } + // string_buffer& operator<<(unsigned long int _n) { _UITOA(_n); } + string_buffer& operator<<(size_t _n) { _UITOA(_n); } + string_buffer& operator<<(char _n) { -- cgit