From: nbd Date: Sun, 31 May 2009 23:02:15 +0000 (+0000) Subject: fix libmpcdec fixed point math (#4715) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=45114220f79f1934f636a718fb7b835b55268628;p=packages.git fix libmpcdec fixed point math (#4715) git-svn-id: svn://svn.openwrt.org/openwrt/packages@16239 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/libs/libmpcdec/Makefile b/libs/libmpcdec/Makefile index ac8f8cd4c..3514d176d 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 000000000..0f7752f29 --- /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 +