Skip to content

Commit

Permalink
Try fix build on MSYS2 using Clang in CLANG64 environment (GH #1241)
Browse files Browse the repository at this point in the history
More Clang troubles...
  • Loading branch information
noloader committed Oct 6, 2023
1 parent 0432085 commit 19f0e3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
/// <tt>_MSC_VER</tt> nor <tt>__BORLANDC__</tt> are defined.
#define CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY ...
#elif defined(CRYPTOPP_MSC_VERSION) || defined(__BORLANDC__) || \
(defined(CRYPTOPP_WIN32_AVAILABLE) && defined(CRYPTOPP_LLVM_CLANG_VERSION))
defined(CRYPTOPP_MSVC_CLANG_VERSION)
#define CRYPTOPP_MS_STYLE_INLINE_ASSEMBLY 1
#else
#define CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY 1
Expand Down
2 changes: 2 additions & 0 deletions config_ver.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
// LLVM Clang version 3.7. Also see https://gist.github.com/yamaya/2924292
#if defined(__clang__) && defined(__apple_build_version__)
# define CRYPTOPP_APPLE_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
#elif defined(__clang__) && defined(_MSC_VER)
# define CRYPTOPP_MSVC_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
#elif defined(__clang__)
# define CRYPTOPP_LLVM_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
#endif
Expand Down

0 comments on commit 19f0e3a

Please sign in to comment.