diff tests/src/libcommon/io/main.cpp @ 700:91bc29e87399

Irccd: use Boost.Predef, closes #805 @1h
author David Demelier <markand@malikania.fr>
date Wed, 09 May 2018 22:34:47 +0200
parents 95ac3ace1610
children 2007a37d7e1a
line wrap: on
line diff
--- a/tests/src/libcommon/io/main.cpp	Wed May 09 20:11:50 2018 +0200
+++ b/tests/src/libcommon/io/main.cpp	Wed May 09 22:34:47 2018 +0200
@@ -19,6 +19,7 @@
 #define BOOST_TEST_MODULE "io"
 #include <boost/test/unit_test.hpp>
 #include <boost/mpl/list.hpp>
+#include <boost/predef/os.h>
 
 #include <irccd/sysconfig.hpp>
 
@@ -39,7 +40,7 @@
 using boost::asio::ssl::context;
 #endif
 
-#if !defined(IRCCD_SYSTEM_WINDOWS)
+#if !BOOST_OS_WINDOWS
 using boost::asio::local::stream_protocol;
 #endif
 
@@ -145,7 +146,7 @@
 
 #endif // !HAVE_SSL
 
-#if !defined(IRCCD_SYSTEM_WINDOWS)
+#if !BOOST_OS_WINDOWS
 
 class local_io_test : public io_test {
 public:
@@ -170,7 +171,7 @@
     }
 };
 
-#endif // !IRCCD_SYSTEM_WINDOWS
+#endif // !BOOST_OS_WINDOWS
 
 /**
  * List of fixtures to tests.
@@ -180,7 +181,7 @@
 #if defined(HAVE_SSL)
     , ssl_io_test
 #endif
-#if !defined(IRCCD_SYSTEM_WINDOWS)
+#if !BOOST_OS_WINDOWS
     , local_io_test
 #endif
 >;