From 2b199b51331ebfc708bf5c302a3b1056ef3ab53c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 20 Apr 2023 03:13:41 +0300 Subject: [PATCH] Avoid redefinition of BOOST_TIMER_SOURCE --- src/auto_timers_construction.cpp | 4 +++- src/cpu_timer.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/auto_timers_construction.cpp b/src/auto_timers_construction.cpp index b23b546..db395e9 100644 --- a/src/auto_timers_construction.cpp +++ b/src/auto_timers_construction.cpp @@ -18,7 +18,9 @@ // define BOOST_TIMER_SOURCE so that 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 #include diff --git a/src/cpu_timer.cpp b/src/cpu_timer.cpp index 9443bc9..6b0e449 100644 --- a/src/cpu_timer.cpp +++ b/src/cpu_timer.cpp @@ -11,7 +11,9 @@ // define BOOST_TIMER_SOURCE so that 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 #include