Skip to content
Browse files

Added config.hpp to project (similar to uri/config.hpp) for compiler …

…portability.
  • Loading branch information...
1 parent 60ad281 commit a12abb56d29544f7422cd2b7896e5589902fd366 @glynos glynos committed Jul 27, 2013
Showing with 47 additions and 1 deletion.
  1. +1 −0 CMakeLists.txt
  2. +45 −0 config/src/network/config.hpp
  3. +1 −1 uri
View
1 CMakeLists.txt
@@ -127,6 +127,7 @@ endif()
if(CPP-NETLIB_BUILD_SINGLE_LIB)
include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}/config/src
${CMAKE_CURRENT_SOURCE_DIR}/concurrency/src
${CMAKE_CURRENT_SOURCE_DIR}/http/src
${CMAKE_CURRENT_SOURCE_DIR}/logging/src
View
45 config/src/network/config.hpp
@@ -0,0 +1,45 @@
+// Copyright (c) Glyn Matthews 2012, 2013.
+// Copyright 2012 Dean Michael Berris <dberris@google.com>
+// Copyright 2012 Google, Inc.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+
+#ifndef NETWORK_CONFIG_INC
+#define NETWORK_CONFIG_INC
+
+#include <boost/config.hpp>
+#include <boost/detail/workaround.hpp>
+
+#if defined(BOOST_ALL_DYN_LINK)
+#define NETWORK_DECL BOOST_SYMBOL_EXPORT
+#else
+#define NETWORK_DECL
+#endif // defined(BOOST_ALL_DYN_LINK)
+
+#if defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS)
+#define NETWORK_DEFAULTED_FUNCTION {}
+#else
+#define NETWORK_DEFAULTED_FUNCTION = default
+#endif // defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS)
+
+#if defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
+#define NETWORK_DELETED_FUNCTION {}
+#else
+#define NETWORK_DELETED_FUNCTION = delete
+#endif // defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
+
+#if defined(BOOST_NO_CXX11_NOEXCEPT)
+#define NETWORK_NOEXCEPT throw()
+#else
+#define NETWORK_NOEXCEPT noexcept
+#endif // defined(BOOST_NO_CXX11_NOEXCEPT)
+
+#if defined(BOOST_NO_CXX11_OVERRIDE)
+#define NETWORK_OVERRIDE
+#else
+#define NETWORK_OVERRIDE override
+#endif // defined(BOOST_NO_CXX11_OVERRIDE)
+
+#endif // NETWORK_CONFIG_INC
2 uri
@@ -1 +1 @@
-Subproject commit 32ea2a75f8738f7ae7aa069062a9d78cfc5c870e
+Subproject commit 13d2b619dc8495724d9d9a38966f7726d857c4b9

0 comments on commit a12abb5

Please sign in to comment.
Something went wrong with that request. Please try again.