diff --git a/libcxx/test/std/utilities/format/format.tuple/format.functions.tests.h b/libcxx/test/std/utilities/format/format.tuple/format.functions.tests.h --- a/libcxx/test/std/utilities/format/format.tuple/format.functions.tests.h +++ b/libcxx/test/std/utilities/format/format.tuple/format.functions.tests.h @@ -11,28 +11,7 @@ #include #include -#include "make_string.h" - -#define STR(S) MAKE_STRING(CharT, S) -#define SV(S) MAKE_STRING_VIEW(CharT, S) - -template -struct context {}; - -template <> -struct context { - using type = std::format_context; -}; - -#ifndef TEST_HAS_NO_WIDE_CHARACTERS -template <> -struct context { - using type = std::wformat_context; -}; -#endif - -template -using context_t = typename context::type; +#include "format.functions.common.h" enum class color { black, red, gold }; diff --git a/libcxx/test/support/format.functions.common.h b/libcxx/test/support/format.functions.common.h --- a/libcxx/test/support/format.functions.common.h +++ b/libcxx/test/support/format.functions.common.h @@ -10,6 +10,8 @@ // Contains the common part of the formatter tests for different papers. +#include +#include #include #include "make_string.h"