From 25cc09dcec5f8f0ada75560bc4e182f815689341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 17 Jun 2019 11:58:40 +0200 Subject: [PATCH] Fix benchmarking in stand-alone files --- include/catch.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/catch.hpp b/include/catch.hpp index b63cc7fe..34130849 100644 --- a/include/catch.hpp +++ b/include/catch.hpp @@ -74,7 +74,8 @@ #include "internal/catch_objc.hpp" #endif -#ifdef CATCH_CONFIG_EXTERNAL_INTERFACES +// Benchmarking needs the externally-facing parts of reporters to work +#if defined(CATCH_CONFIG_EXTERNAL_INTERFACES) || defined(CATCH_CONFIG_ENABLE_BENCHMARKING) #include "internal/catch_external_interfaces.h" #endif