Commit 1683e21e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: fix lame on Win32 with mingw-w64

parent dde3c272
diff -ru lame.orig/libmp3lame/vbrquantize.c lame/libmp3lame/vbrquantize.c
--- lame.orig/libmp3lame/vbrquantize.c 2011-11-06 11:12:40.000000000 +0200
+++ lame/libmp3lame/vbrquantize.c 2011-11-06 11:14:52.000000000 +0200
@@ -73,6 +73,11 @@
# define FORCEINLINE __forceinline
# endif
# endif
+#elif defined (WIN32)
+# define VOLATILE
+/* Make sure FORCEINLINE does not include "extern" */
+# undef FORCEINLINE
+# define FORCEINLINE __inline__ __attribute__((always_inline))
#else
# define VOLATILE
#endif
--- lame/libmp3lame/vbrquantize.c.orig 2011-11-03 10:26:28.414360800 -0400
+++ lame/libmp3lame/vbrquantize.c 2011-11-03 10:26:30.478371043 -0400
@@ -81,6 +81,11 @@
#define FORCEINLINE
#endif
+#ifdef WIN64
+#undef FORCEINLINE
+#define FORCEINLINE __inline__ __attribute__((always_inline))
+#endif
+
typedef VOLATILE union {
float f;
int i;
...@@ -10,9 +10,7 @@ $(TARBALLS)/lame-$(LAME_VERSION).tar.gz: ...@@ -10,9 +10,7 @@ $(TARBALLS)/lame-$(LAME_VERSION).tar.gz:
lame: lame-$(LAME_VERSION).tar.gz .sum-lame lame: lame-$(LAME_VERSION).tar.gz .sum-lame
$(UNPACK) $(UNPACK)
ifdef HAVE_WIN64 $(APPLY) $(SRC)/lame/lame-forceinline.patch
$(APPLY) $(SRC)/lame/lame-win64.patch
endif
$(MOVE) $(MOVE)
.lame: lame .lame: lame
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment