diff --git a/include/internal/catch_reporter_registrars.hpp b/include/internal/catch_reporter_registrars.hpp index fecbfa91..51465556 100644 --- a/include/internal/catch_reporter_registrars.hpp +++ b/include/internal/catch_reporter_registrars.hpp @@ -67,8 +67,8 @@ namespace Catch { } #define INTERNAL_CATCH_REGISTER_LEGACY_REPORTER( name, reporterType ) \ - Catch::LegacyReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); + namespace{ Catch::LegacyReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); } #define INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType ) \ - Catch::ReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); + namespace{ Catch::ReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); } #endif // TWOBLUECUBES_CATCH_REPORTER_REGISTRARS_HPP_INCLUDED