From: Felix Fietkau Date: Sun, 31 May 2009 23:02:15 +0000 (+0000) Subject: fix libmpcdec fixed point math (#4715) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=ee8c54cb88c5dcd860af0326fe4510bcacf79a4f;ds=sidebyside fix libmpcdec fixed point math (#4715) SVN-Revision: 16239 --- diff --git a/libs/libmpcdec/Makefile b/libs/libmpcdec/Makefile index ac8f8cd4c5..3514d176dc 100644 --- a/libs/libmpcdec/Makefile +++ b/libs/libmpcdec/Makefile @@ -31,7 +31,7 @@ define Package/libmpcdec/description Musepack decoder library endef -TARGET_CFLAGS += $(FPIC) -DMPC_FIXED_POINT +TARGET_CFLAGS += $(FPIC) define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/mpcdec/ diff --git a/libs/libmpcdec/patches/100-fixed_point.patch b/libs/libmpcdec/patches/100-fixed_point.patch new file mode 100644 index 0000000000..0f7752f29e --- /dev/null +++ b/libs/libmpcdec/patches/100-fixed_point.patch @@ -0,0 +1,11 @@ +--- a/include/mpcdec/math.h ++++ b/include/mpcdec/math.h +@@ -38,7 +38,7 @@ + #ifndef _mpcdec_math_h_ + #define _mpcdec_math_h_ + +-//#define MPC_FIXED_POINT ++#define MPC_FIXED_POINT + + #define MPC_FIXED_POINT_SHIFT 16 +