aboutsummaryrefslogtreecommitdiff
path: root/ports/libmad/0001-Fix-MSVC-ARM.patch
blob: 9cdc57c7bfeea4d5f3765e441f20c356f0669139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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