musepack/libmpcdec-extern.patch
Michael Gorse 8206e467da Accepting request 1157023 from home:mgorse:branches:multimedia:libs
- Rework libmpcdec.patch and libmpcdec-extern.patch so that they
  apply with -p1, and use autosetup.
- Add libmpcdec-gcc14.patch: fix the build with gcc 14
  (boo#1221008).

OBS-URL: https://build.opensuse.org/request/show/1157023
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/musepack?expand=0&rev=14
2024-03-11 19:58:29 +00:00

17 lines
841 B
Diff

diff -urp musepack_src_r475.orig/libmpcdec/requant.h musepack_src_r475/libmpcdec/requant.h
--- musepack_src_r475.orig/libmpcdec/requant.h 2009-02-23 12:44:04.000000000 -0600
+++ musepack_src_r475/libmpcdec/requant.h 2024-03-10 13:23:35.095195384 -0500
@@ -47,9 +47,9 @@ extern "C" {
/* C O N S T A N T S */
-const mpc_uint8_t Res_bit [18]; ///< Bits per sample for chosen quantizer
-const MPC_SAMPLE_FORMAT __Cc [1 + 18]; ///< Requantization coefficients
-const mpc_int16_t __Dc [1 + 18]; ///< Requantization offset
+extern const mpc_uint8_t Res_bit [18]; ///< Bits per sample for chosen quantizer
+extern const MPC_SAMPLE_FORMAT __Cc [1 + 18]; ///< Requantization coefficients
+extern const mpc_int16_t __Dc [1 + 18]; ///< Requantization offset
#define Cc (__Cc + 1)
#define Dc (__Dc + 1)