From 37194ec805807143c2d9cb4a76ab7f258a3d0622 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Wed, 18 Sep 2019 15:08:26 +0100 Subject: [PATCH] Introduce the BOOST_MPL stuff (though it all seems a bit flaky with MSVC...) --- libs/ardour/ardour/transport_fsm.h | 4 ++++ msvc_extra_headers/ardourext/sys/targetsxs.h.input | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/libs/ardour/ardour/transport_fsm.h b/libs/ardour/ardour/transport_fsm.h index 689db5c16c..f175f8161a 100644 --- a/libs/ardour/ardour/transport_fsm.h +++ b/libs/ardour/ardour/transport_fsm.h @@ -5,6 +5,10 @@ #undef nil #endif +#ifndef BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS +#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS +#endif + #include #include #include diff --git a/msvc_extra_headers/ardourext/sys/targetsxs.h.input b/msvc_extra_headers/ardourext/sys/targetsxs.h.input index 7ab3f68ddf..c2e2b4d3bc 100644 --- a/msvc_extra_headers/ardourext/sys/targetsxs.h.input +++ b/msvc_extra_headers/ardourext/sys/targetsxs.h.input @@ -76,6 +76,18 @@ __declspec(selectany) int _forceAtlDllManifestRTM; #endif #endif +#define BOOST_MPL_LIMIT_VECTOR_SIZE 30 +#ifdef NDEBUG +/* This one needs further investigation as it's */ +/* causing errors in the MSVC Debuggable builds */ +#define BOOST_MPL_LIMIT_MAP_SIZE 30 + +/* And this one seems dodgy in all builds (it's causing */ +/* various compile issues which change depending on the */ +/* inclusion order of our #included boost header files) */ +//#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS +#endif + /* 'stdint.h' conflicts with various other libraries so let's #include stdint.h first to ensure one consistent implementation for commonly used integer types. */