Skip to content

Commit

Permalink
fix mingw build
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Dec 14, 2024
1 parent 6ecbf51 commit 71e4291
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/firestarter/WindowsCompat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif

#if defined(__clang__)
#include <emmintrin.h>
#elif not(defined(__MINGW32__) || defined(__MINGW64__))
void _mm_mfence() noexcept;
#else
#include <intrin.h>
#endif

#if not(defined(__INTEL_LLVM_COMPILER))
void __cpuid(int* /*unused*/, int /*unused*/) noexcept;
#endif
Expand Down

0 comments on commit 71e4291

Please sign in to comment.