vcpkg/ports/fmt/fix-invalid-command.patch

12 lines
393 B
Diff
Raw Normal View History

2022-03-03 06:53:33 +08:00
diff --git a/include/fmt/locale.h b/include/fmt/locale.h
index 7571b52..0a34eb4 100644
--- a/include/fmt/locale.h
+++ b/include/fmt/locale.h
@@ -1,2 +1,6 @@
#include "xchar.h"
+#ifdef _WIN32
+#pragma message ("fmt/locale.h is deprecated, include fmt/format.h or fmt/xchar.h instead")
+#else
#warning fmt/locale.h is deprecated, include fmt/format.h or fmt/xchar.h instead
+#endif