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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user