We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0cd0fc commit ae6fd83Copy full SHA for ae6fd83
include/fmt/fmt-c.h
@@ -91,14 +91,15 @@ static inline fmt_arg fmt_from_ptr(const void* x) {
91
92
void fmt_unsupported_type(void);
93
94
-# ifndef _MSC_VER
+# if !defined(_MSC_VER) || defined(__clang__)
95
typedef signed char fmt_signed_char;
96
# else
97
typedef enum {} fmt_signed_char;
98
# endif
99
100
// Require modern MSVC with conformant preprocessor.
101
-# if defined(_MSC_VER) && (!defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL)
+# if defined(_MSC_VER) && !defined(__clang__) && \
102
+ (!defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL)
103
# error "C API requires MSVC 2019+ with /Zc:preprocessor flag."
104
105
0 commit comments