1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add a few patches to let the port build with clang.

This commit is contained in:
Raphael Kubo da Costa 2013-06-01 20:20:18 +00:00
parent 94a687b1f4
commit f5a589f19e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319588
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,16 @@
--- src/leoini.h~ 2013-06-01 22:28:45.000000000 +0300
+++ src/leoini.h 2013-06-01 22:32:05.000000000 +0300
@@ -260,11 +260,9 @@
if( start == std::string::npos ||
end == std::string::npos )
- s = "";
- else
- s = s.substr( start+1, start-end -1 );
+ return s2x<A>("");
- return s2x<A>(s);
+ return s2x<A>(s.substr( start+1, start-end -1 ));
}
} // namespace Leo

View File

@ -0,0 +1,12 @@
--- src/string_utils.h~ 2013-06-01 23:10:50.000000000 +0300
+++ src/string_utils.h 2013-06-01 22:56:43.000000000 +0300
@@ -28,6 +28,9 @@
# define STRSTREAM
#endif
+typedef std::vector<std::string> vec_string;
+std::ostream& operator<<( std::ostream& out, const vec_string &v );
+
std::string toupper( std::string s );
std::string strip( const std::string& str, const std::string& what = " \t\n\0" );
bool is_int( const std::string &s );