diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-09-23 05:17:33 +0800 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-09-23 05:17:33 +0800 |
commit | b6cc085dce9bbef96c63bde511027658fd5c2f83 (patch) | |
tree | c20fd46a5103096332c609f9dcf8194ff6a30519 /science/crf++/files | |
parent | a1a21b36a23da3a2e42e5528128f3cacfaafdd8a (diff) | |
download | freebsd-ports-gnome-b6cc085dce9bbef96c63bde511027658fd5c2f83.tar.gz freebsd-ports-gnome-b6cc085dce9bbef96c63bde511027658fd5c2f83.tar.zst freebsd-ports-gnome-b6cc085dce9bbef96c63bde511027658fd5c2f83.zip |
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); }
^
Diffstat (limited to 'science/crf++/files')
-rw-r--r-- | science/crf++/files/patch-common.h | 11 |
1 files changed, 11 insertions, 0 deletions
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) { |