Skip to content

Commit 840923a

Browse files
authored
platform.h: Always compile in MSVC mode if _MSC_VER is set (#57680)
This fixes embedding Julia on Windows when compiling with clang-cl.
1 parent a97137e commit 840923a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/support/platform.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
* Compiler *
3636
*******************************************************************************/
3737

38-
#if defined(__clang__)
38+
#if defined(_MSC_VER)
39+
#define _COMPILER_MICROSOFT_
40+
#elif defined(__clang__)
3941
#define _COMPILER_CLANG_
4042
#elif defined(__GNUC__)
4143
#define _COMPILER_GCC_
42-
#elif defined(_MSC_VER)
43-
#define _COMPILER_MICROSOFT_
4444
#else
4545
#error Unsupported compiler
4646
#endif

0 commit comments

Comments
 (0)