Skip to content

Commit 077bec5

Browse files
committed
Try to fix build on MinGW32
1 parent f558d78 commit 077bec5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cpp/src/arrow/vendored/fast_float/float_common.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
#include <strings.h>
99
#endif
1010

11-
#if defined(_MSC_VER) && !defined(__clang__)
11+
#if defined(_WIN32) && !defined(__clang__)
12+
// Note this also covers MinGW
1213
#define FASTFLOAT_VISUAL_STUDIO 1
1314
#endif
1415

@@ -18,7 +19,7 @@
1819
#define fastfloat_really_inline inline __attribute__((always_inline))
1920
#endif
2021

21-
#ifdef _MSC_VER
22+
#ifdef _WIN32
2223
#define fastfloat_strcasecmp _stricmp
2324
#define fastfloat_strncasecmp _strnicmp
2425
#else
@@ -106,7 +107,7 @@ fastfloat_really_inline value128 full_multiplication(uint64_t value1, uint64_t v
106107
return answer;
107108
}
108109

109-
#else
110+
#else // !FASTFLOAT_VISUAL_STUDIO
110111

111112
// compute value1 * value2
112113
fastfloat_really_inline

0 commit comments

Comments
 (0)