mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
Ensure that console_width.hpp includes user_config.hpp first
Otherwise we can get macro redefinition warnings when another file includes console_width.hpp first, before user_config.hpp. Closes #2431
This commit is contained in:
parent
3a18a688a0
commit
85c00eb946
@ -8,6 +8,10 @@
|
||||
#ifndef CATCH_CONSOLE_WIDTH_HPP_INCLUDED
|
||||
#define CATCH_CONSOLE_WIDTH_HPP_INCLUDED
|
||||
|
||||
// This include must be kept so that user's configured value for CONSOLE_WIDTH
|
||||
// is used before we attempt to provide a default value
|
||||
#include <catch2/catch_user_config.hpp>
|
||||
|
||||
#ifndef CATCH_CONFIG_CONSOLE_WIDTH
|
||||
#define CATCH_CONFIG_CONSOLE_WIDTH 80
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user