Skip to content

Commit

Permalink
platform.h: Always compile in MSVC mode if _MSC_VER is set (#57680)
Browse files Browse the repository at this point in the history
This fixes embedding Julia on Windows when compiling with clang-cl.
  • Loading branch information
romanrexc authored Mar 11, 2025
1 parent a97137e commit 840923a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/support/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
* Compiler *
*******************************************************************************/

#if defined(__clang__)
#if defined(_MSC_VER)
#define _COMPILER_MICROSOFT_
#elif defined(__clang__)
#define _COMPILER_CLANG_
#elif defined(__GNUC__)
#define _COMPILER_GCC_
#elif defined(_MSC_VER)
#define _COMPILER_MICROSOFT_
#else
#error Unsupported compiler
#endif
Expand Down

0 comments on commit 840923a

Please sign in to comment.