windows-amd64-prebuilt-libr.../vcpkg/ports/libmad/0001-Fix-MSVC-ARM.patch
2020-10-10 14:36:42 +02:00

26 lines
462 B
Diff

diff --git a/mad.h b/mad.h
index 9ef6cc8..5e3f7aa 100644
--- a/mad.h
+++ b/mad.h
@@ -24,7 +24,11 @@
extern "C" {
# endif
+#ifdef _WIN64
+# define FPM_64BIT
+#else
# define FPM_INTEL
+#endif
@@ -184,7 +188,7 @@ typedef mad_fixed_t mad_sample_t;
# elif defined(FPM_INTEL)
-# if defined(_MSC_VER)
+# if defined(_MSC_VER) && defined(_M_IX86)
# pragma warning(push)
# pragma warning(disable: 4035) /* no return value */
static __forceinline