We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parentsf86503f +27de355 commit4d2389bCopy full SHA for 4d2389b
CMakeLists.txt
@@ -77,15 +77,14 @@ endif()
77
78
message(STATUS"C++ Compiler ID:${CMAKE_CXX_COMPILER_ID}")
79
message(STATUS"C++ Flags:${CMAKE_CXX_FLAGS} link flags:${CMAKE_CXX_LINK_FLAGS}")
80
-if (Boost_FOUND)
81
- if (MSVC)
82
- add_definitions(-D_SCL_SECURE_NO_WARNINGS)
83
- endif(MSVC)
84
- if (WIN32)
85
- add_definitions(-D_WIN32_WINNT=0x0501)
86
- endif(WIN32)
87
- include_directories(${Boost_INCLUDE_DIRS})
88
-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})
89
90
message(STATUS"CPP-NETLIB options selected:")
91
message(STATUS" CPP-NETLIB_BUILD_SHARED_LIBS: ${CPP-NETLIB_BUILD_SHARED_LIBS}\t(Build cpp-netlib as shared libraries: OFF, ON)")
error/src/error.cpp
@@ -5,6 +5,7 @@
5
6
#include<network/error.hpp>
7
#include<cstring>
8
+#include<string>
9
10
namespacenetwork {
11
http/src/http/v2/client/client_errors.cpp
#include<network/config.hpp>
#include<network/http/v2/client/client_errors.hpp>
namespacehttp {
http/src/network/protocol/http/client/options.ipp
@@ -30,7 +30,7 @@ class client_options_pimpl {
30
}
31
32
voidio_service(boost::asio::io_service* io_service) {
33
- io_service_ =io_service_;
+ io_service_ =io_service;
34
35
36
boost::asio::io_service*io_service()const {return io_service_; }
logging/test/logging_log_record.cpp
@@ -8,7 +8,9 @@
#include<gtest/gtest.h>
#include<network/logging/logging.hpp>
-#defineNETWORK_ENABLE_LOGGING
+#ifndef NETWORK_ENABLE_LOGGING
12
+#defineNETWORK_ENABLE_LOGGING
13
+#endif
14
#include<network/detail/debug.hpp>
15
16
usingnamespacenetwork::logging;
@@ -73,4 +75,4 @@ TEST(logging_log_record, macro_log) {
73
75
NETWORK_MESSAGE("This is a log through the macro.");
74
76
NETWORK_MESSAGE("This is a log through the macro, with a stream! Num="
<<42 <<" - OK!");
-}
+}
message/src/network/detail/debug.hpp
@@ -15,7 +15,7 @@
The user can force the logging to be enabled by defining NETWORK_ENABLE_LOGGING.
17
*/
18
-#if defined(NETWORK_DEBUG) && defined(NETWORK_ENABLE_LOGGING)
+#if defined(NETWORK_DEBUG) &&!defined(NETWORK_ENABLE_LOGGING)
19
#defineNETWORK_ENABLE_LOGGING
20
#endif
21
mime/test/CMakeLists.txt
@@ -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 )