Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ qi_install_header(${SERIALIZE_HEADERS} SUBFOLDER serialize)
qi_create_lib(port
SHARED
SRC ${PORT_SOURCES} ${PORT_HEADERS}
DEPENDS BOOST BOOST_CHRONO BOOST_FILESYSTEM BOOST_DATE_TIME BOOST_SYSTEM BOOST_THREAD)
DEPENDS BOOST BOOST_CHRONO BOOST_FILESYSTEM BOOST_DATE_TIME BOOST_SYSTEM BOOST_THREAD BOOST_REGEX)

set_target_properties(port
PROPERTIES
Expand Down
2 changes: 1 addition & 1 deletion include/libport/ctime
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
| timespec. |
`-----------*/

# if defined WIN32
# if defined WIN32 && (_MSC_VER < 1900)
struct timespec
{
time_t tv_sec;
Expand Down
2 changes: 1 addition & 1 deletion include/libport/option-parser.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace libport
{
if (!filled_)
{
aver(def);
aver(bool(def));
return def.get();
}
return boost::lexical_cast<T>(value_);
Expand Down
2 changes: 1 addition & 1 deletion include/sched/exception.hh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace sched
/// Define an optional field Name, and accessors.
#define ADD_FIELD(Type, Name) \
public: \
bool Name ## _is_set() const { return Name ## _; }; \
bool Name ## _is_set() const { return bool(Name ## _); }; \
const Type& Name ## _get() const { return Name ## _ .get(); }; \
void Name ## _set(const Type& data) { Name ## _ = data; }; \
private: \
Expand Down
2 changes: 1 addition & 1 deletion include/sched/libcoroutine/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ These defines are helpful for doing OS specific checks in the code.

#if defined(WIN32) || defined(__WINS__) || defined(__MINGW32__) || defined(_MSC_VER)
#define inline __inline
#if defined _MSC_VER
#if (_MSC_VER < 1900)
# define snprintf _snprintf
#endif
#define usleep(x) Sleep(((x)+999)/1000)
Expand Down
6 changes: 3 additions & 3 deletions lib/libport/cstdlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ namespace libport
# if defined __APPLE__
res = env_build(*_NSGetEnviron());
# elif defined _MSC_VER || defined __MINGW32__
char* environ = GetEnvironmentStrings();
for (char* cp = environ; *cp; cp += strlen(cp) + 1)
char* env = GetEnvironmentStrings();
for (char* cp = env; *cp; cp += strlen(cp) + 1)
env_add(res, cp);
FreeEnvironmentStrings(environ);
FreeEnvironmentStrings(env);
# else
res = env_build(environ);
# endif
Expand Down
2 changes: 1 addition & 1 deletion lib/libport/option-parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ namespace libport
{
if (!filled_)
{
aver(def);
aver(bool(def));
return def.get();
}
return value_;
Expand Down