The Boost meson module sets this on the command-line, so avoid compiler warning when redefining

This commit is contained in:
Chris Cannam
2022-07-01 12:01:06 +01:00
parent 8d4d8a39bc
commit 335aef35c9
10 changed files with 20 additions and 0 deletions

View File

@@ -21,7 +21,9 @@
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "../common/VectorOps.h" #include "../common/VectorOps.h"

View File

@@ -21,7 +21,9 @@
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
// This test suite (shallowly) tests both BinClassifier and BinSegmenter // This test suite (shallowly) tests both BinClassifier and BinSegmenter

View File

@@ -21,7 +21,9 @@
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "../common/FFT.h" #include "../common/FFT.h"

View File

@@ -21,7 +21,9 @@
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "../common/Resampler.h" #include "../common/Resampler.h"

View File

@@ -21,7 +21,9 @@
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "../common/MovingMedian.h" #include "../common/MovingMedian.h"

View File

@@ -21,7 +21,9 @@
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "../common/StretchCalculator.h" #include "../common/StretchCalculator.h"

View File

@@ -21,7 +21,9 @@
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "../../rubberband/RubberBandStretcher.h" #include "../../rubberband/RubberBandStretcher.h"

View File

@@ -21,7 +21,9 @@
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "../common/VectorOps.h" #include "../common/VectorOps.h"

View File

@@ -21,7 +21,9 @@
you must obtain a valid commercial licence before doing so. you must obtain a valid commercial licence before doing so.
*/ */
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "../common/VectorOpsComplex.h" #include "../common/VectorOpsComplex.h"

View File

@@ -22,5 +22,7 @@
*/ */
#define BOOST_TEST_MODULE RubberBand #define BOOST_TEST_MODULE RubberBand
#ifndef BOOST_TEST_DYN_LINK
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>