Skip to content

Commit f461ca6

Browse files
committed
Removed redundant checks for __CYGWIN__ that are excluded by BOOST_WINDOWS.
1 parent 3efa06b commit f461ca6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

include/boost/log/detail/timestamp.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include <boost/cstdint.hpp>
2020
#include <boost/log/detail/config.hpp>
21-
#if defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
21+
#if defined(BOOST_WINDOWS)
2222
#include <boost/winapi/basic_types.hpp>
2323
#endif
2424
#include <boost/log/detail/header.hpp>
@@ -43,7 +43,7 @@ class duration
4343
public:
4444
explicit duration(int64_t ticks = 0) BOOST_NOEXCEPT : m_ticks(ticks) {}
4545

46-
#if defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
46+
#if defined(BOOST_WINDOWS)
4747
int64_t milliseconds() const { return m_ticks; }
4848
#else
4949
BOOST_LOG_API int64_t milliseconds() const;
@@ -74,7 +74,7 @@ class timestamp
7474
* be affected by clock changes, either manual or seasonal. Also, it
7575
* should be as fast as possible.
7676
*/
77-
#if defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
77+
#if defined(BOOST_WINDOWS)
7878

7979
typedef uint64_t (BOOST_WINAPI_WINAPI_CC* get_tick_count_t)();
8080
extern BOOST_LOG_API get_tick_count_t get_tick_count;

src/timestamp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <boost/log/detail/config.hpp>
1717
#include <boost/log/detail/timestamp.hpp>
1818

19-
#if defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
19+
#if defined(BOOST_WINDOWS)
2020
#include <cstddef>
2121
#include <cstdlib>
2222
#include <boost/memory_order.hpp>
@@ -47,7 +47,7 @@ BOOST_LOG_OPEN_NAMESPACE
4747

4848
namespace aux {
4949

50-
#if defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
50+
#if defined(BOOST_WINDOWS)
5151

5252
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
5353

0 commit comments

Comments
 (0)