mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-04 20:34:26 -04:00
Fix MacOSX 10.10 Yosemite Compilation
by using retroshare.pri file like linux or windows, fixing namespace for unordered_set, fixing c++11 for ostream& operator<<, checking if ntohll and htonll already defined.
This commit is contained in:
parent
8e9fe6d800
commit
86b559191e
11 changed files with 127 additions and 13 deletions
|
@ -47,7 +47,12 @@ template<int n> class t_RsFlags32
|
|||
|
||||
friend std::ostream& operator<<(std::ostream& o,const t_RsFlags32<n>& f) // friendly print with 0 and I
|
||||
{
|
||||
for(int i=31;i>=0;--i) { o << ( (f._bits&(1<<i))?"I":"0") ; if(i%8==0) o << " " ; }
|
||||
for(int i=31;i>=0;--i) {
|
||||
std::string res = f._bits&(1<<i)?"I":"0" ;
|
||||
std::string blank = " " ;
|
||||
o << res ;
|
||||
if(i%8==0) o << blank ;
|
||||
}
|
||||
return o ;
|
||||
}
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue