fix module test odr violations (#2414)
This commit is contained in:
parent
2038bf6183
commit
00235d8a99
@ -12,7 +12,12 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#ifdef FMT_MODULE_TEST
|
||||||
|
import fmt;
|
||||||
|
#else
|
||||||
#include "fmt/os.h"
|
#include "fmt/os.h"
|
||||||
|
#endif // FMG_MODULE_TEST
|
||||||
|
|
||||||
#include "gmock/gmock.h"
|
#include "gmock/gmock.h"
|
||||||
|
|
||||||
#define FMT_TEST_THROW_(statement, expected_exception, expected_message, fail) \
|
#define FMT_TEST_THROW_(statement, expected_exception, expected_message, fail) \
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
# define FMT_HIDE_MODULE_BUGS
|
# define FMT_HIDE_MODULE_BUGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define FMT_MODULE_TEST
|
||||||
|
|
||||||
#include <bit>
|
#include <bit>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
@ -10,7 +10,11 @@
|
|||||||
#include <locale>
|
#include <locale>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#ifdef FMT_MODULE_TEST
|
||||||
|
import fmt;
|
||||||
|
#else
|
||||||
#include "fmt/os.h"
|
#include "fmt/os.h"
|
||||||
|
#endif // FMT_MODULE_TEST
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# define FMT_VSNPRINTF vsprintf_s
|
# define FMT_VSNPRINTF vsprintf_s
|
||||||
|
Loading…
Reference in New Issue
Block a user