Skip to content

Commit 8dc476d

Browse files
committed
Adding MSVC workaround for __ucrt_int_to_float duplication
1 parent f4b8138 commit 8dc476d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sagittarius/private/sagittariusdefs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ typedef uint32_t _W64 uintptr_t;
112112
#if __STDC_VERSION__ >= 199901L
113113
/* "inline" is a keyword */
114114
#else
115-
# ifndef __cplusplus
115+
/* Avoiding __ucrt_int_to_float to be duplicated on MSVC */
116+
# if !defined(__cplusplus) && defined(_MSC_VER) && _MSC_VER < 1900
116117
# define inline /* nothing */
117118
# endif
118119
#endif

0 commit comments

Comments
 (0)