Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
glynos committed Jan 25, 2014
2 parents f86503f + 27de355 commit 4d2389b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
17 changes: 8 additions & 9 deletions CMakeLists.txt
Expand Up @@ -77,15 +77,14 @@ endif()

message(STATUS "C++ Compiler ID: ${CMAKE_CXX_COMPILER_ID}")
message(STATUS "C++ Flags: ${CMAKE_CXX_FLAGS} link flags: ${CMAKE_CXX_LINK_FLAGS}")
if (Boost_FOUND)
if (MSVC)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
endif(MSVC)
if (WIN32)
add_definitions(-D_WIN32_WINNT=0x0501)
endif(WIN32)
include_directories(${Boost_INCLUDE_DIRS})
endif(Boost_FOUND)

if (MSVC)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
endif(MSVC)
if (WIN32)
add_definitions(-D_WIN32_WINNT=0x0501)
endif(WIN32)
include_directories(${Boost_INCLUDE_DIRS})

message(STATUS "CPP-NETLIB options selected:")
message(STATUS " CPP-NETLIB_BUILD_SHARED_LIBS: ${CPP-NETLIB_BUILD_SHARED_LIBS}\t(Build cpp-netlib as shared libraries: OFF, ON)")
Expand Down
1 change: 1 addition & 0 deletions error/src/error.cpp
Expand Up @@ -5,6 +5,7 @@

#include <network/error.hpp>
#include <cstring>
#include <string>

namespace network {

Expand Down
1 change: 1 addition & 0 deletions http/src/http/v2/client/client_errors.cpp
Expand Up @@ -5,6 +5,7 @@

#include <network/config.hpp>
#include <network/http/v2/client/client_errors.hpp>
#include <string>

namespace network {
namespace http {
Expand Down
2 changes: 1 addition & 1 deletion http/src/network/protocol/http/client/options.ipp
Expand Up @@ -30,7 +30,7 @@ class client_options_pimpl {
}

void io_service(boost::asio::io_service* io_service) {
io_service_ = io_service_;
io_service_ = io_service;
}

boost::asio::io_service* io_service() const { return io_service_; }
Expand Down
6 changes: 4 additions & 2 deletions logging/test/logging_log_record.cpp
Expand Up @@ -8,7 +8,9 @@
#include <gtest/gtest.h>

#include <network/logging/logging.hpp>
#define NETWORK_ENABLE_LOGGING
#ifndef NETWORK_ENABLE_LOGGING
# define NETWORK_ENABLE_LOGGING
#endif
#include <network/detail/debug.hpp>

using namespace network::logging;
Expand Down Expand Up @@ -73,4 +75,4 @@ TEST(logging_log_record, macro_log) {
NETWORK_MESSAGE("This is a log through the macro.");
NETWORK_MESSAGE("This is a log through the macro, with a stream! Num="
<< 42 << " - OK!");
}
}
2 changes: 1 addition & 1 deletion message/src/network/detail/debug.hpp
Expand Up @@ -15,7 +15,7 @@
The user can force the logging to be enabled by defining NETWORK_ENABLE_LOGGING.
*/
#if defined(NETWORK_DEBUG) && defined(NETWORK_ENABLE_LOGGING)
#if defined(NETWORK_DEBUG) && !defined(NETWORK_ENABLE_LOGGING)
#define NETWORK_ENABLE_LOGGING
#endif

Expand Down
9 changes: 3 additions & 6 deletions mime/test/CMakeLists.txt
Expand Up @@ -13,9 +13,6 @@ endif()

include_directories(${CPP-NETLIB_SOURCE_DIR}/mime/src)

if ( Boost_FOUND )
add_executable ( mime-roundtrip mime-roundtrip.cpp )
target_link_libraries ( mime-roundtrip )
add_test ( mime-roundtrip mime-roundtrip )
endif ()

add_executable ( mime-roundtrip mime-roundtrip.cpp )
target_link_libraries ( mime-roundtrip )
add_test ( mime-roundtrip mime-roundtrip )

0 comments on commit 4d2389b

Please sign in to comment.