diff --git a/test/gtest-extra.h b/test/gtest-extra.h index 49844f9e..3a3a96cf 100644 --- a/test/gtest-extra.h +++ b/test/gtest-extra.h @@ -12,7 +12,12 @@ #include +#ifdef FMT_MODULE_TEST +import fmt; +#else #include "fmt/os.h" +#endif // FMG_MODULE_TEST + #include "gmock/gmock.h" #define FMT_TEST_THROW_(statement, expected_exception, expected_message, fail) \ diff --git a/test/module-test.cc b/test/module-test.cc index 5d050406..7b09ddce 100644 --- a/test/module-test.cc +++ b/test/module-test.cc @@ -15,6 +15,8 @@ # define FMT_HIDE_MODULE_BUGS #endif +#define FMT_MODULE_TEST + #include #include #include diff --git a/test/util.h b/test/util.h index e7824b7d..97e50909 100644 --- a/test/util.h +++ b/test/util.h @@ -10,7 +10,11 @@ #include #include +#ifdef FMT_MODULE_TEST +import fmt; +#else #include "fmt/os.h" +#endif // FMT_MODULE_TEST #ifdef _MSC_VER # define FMT_VSNPRINTF vsprintf_s