From ee8c54cb88c5dcd860af0326fe4510bcacf79a4f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 31 May 2009 23:02:15 +0000 Subject: [PATCH] fix libmpcdec fixed point math (#4715) SVN-Revision: 16239 --- libs/libmpcdec/Makefile | 2 +- libs/libmpcdec/patches/100-fixed_point.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 libs/libmpcdec/patches/100-fixed_point.patch 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 + -- 2.30.2