Skip to content

Commit

Permalink
Merge pull request #306 from p-alik/macos-build
Browse files Browse the repository at this point in the history
Refactoring for sake of macOS build
  • Loading branch information
SpamapS committed Oct 31, 2020
2 parents 302f33c + ce4c4f0 commit 43b3919
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions libboost/config/workaround.hpp
@@ -0,0 +1,5 @@
#ifndef __clang_major__
#define __clang_major___WORKAROUND_GUARD 1
#else
#define __clang_major___WORKAROUND_GUARD 0
#endif
4 changes: 3 additions & 1 deletion libtest/server_container.cc
Expand Up @@ -49,7 +49,9 @@
// trim from end
static inline std::string &rtrim(std::string &s)
{
s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
s.erase(std::find_if(s.rbegin(), s.rend(), [](int ch) {
return !std::isspace(ch);
}).base(), s.end());
return s;
}

Expand Down
2 changes: 2 additions & 0 deletions m4/bottom.m4
Expand Up @@ -54,6 +54,8 @@ typedef unsigned long int ulong;
#define MSG_DONTWAIT 0
#endif // HAVE_MSG_DONTWAIT
#include "libboost/config/workaround.hpp"
])
])dnl CONFIG_EXTRA

0 comments on commit 43b3919

Please sign in to comment.