2
0
mirror of https://github.com/boostorg/timer.git synced 2026-01-19 04:42:13 +00:00

Avoid redefinition of BOOST_TIMER_SOURCE

This commit is contained in:
Peter Dimov
2023-04-20 03:13:41 +03:00
parent cca09d7c3c
commit 2b199b5133
2 changed files with 6 additions and 2 deletions

View File

@@ -18,7 +18,9 @@
// define BOOST_TIMER_SOURCE so that <boost/timer/config.hpp> knows
// the library is being built (possibly exporting rather than importing code)
#define BOOST_TIMER_SOURCE
#ifndef BOOST_TIMER_SOURCE
# define BOOST_TIMER_SOURCE
#endif
#include <boost/timer/timer.hpp>
#include <iostream>

View File

@@ -11,7 +11,9 @@
// define BOOST_TIMER_SOURCE so that <boost/timer/config.hpp> knows
// the library is being built (possibly exporting rather than importing code)
#define BOOST_TIMER_SOURCE
#ifndef BOOST_TIMER_SOURCE
# define BOOST_TIMER_SOURCE
#endif
#include <boost/timer/timer.hpp>
#include <boost/io/ios_state.hpp>