about summary refs log tree commit diff
path: root/pkgs/development/libraries/wavpack/wavpack_clang.patch
blob: dfbe471814316491a5e827048a377a3cccf38c25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -ru -x '*~' wavpack-4.75.0_orig/src/wavpack_local.h wavpack-4.75.0/src/wavpack_local.h
--- wavpack-4.75.0_orig/src/wavpack_local.h	2015-05-21 06:50:26.000000000 +0900
+++ wavpack-4.75.0/src/wavpack_local.h	2015-09-14 21:48:09.000000000 +0900
@@ -650,9 +650,9 @@
 void scan_word (WavpackStream *wps, int32_t *samples, uint32_t num_samples, int dir);
 void update_error_limit (WavpackStream *wps);
 
-const uint32_t bitset [32];
-const uint32_t bitmask [32];
-const char nbits_table [256];
+extern const uint32_t bitset [32];
+extern const uint32_t bitmask [32];
+extern const char nbits_table [256];
 
 int log2s (int32_t value);
 int32_t exp2s (int log);
@@ -734,7 +734,7 @@
 /////////////////////////////////// common utilities ////////////////////////////////////
 // module: common_utils.c
 
-const uint32_t sample_rates [16];
+extern const uint32_t sample_rates [16];
 uint32_t WavpackGetLibraryVersion (void);
 const char *WavpackGetLibraryVersionString (void);
 uint32_t WavpackGetSampleRate (WavpackContext *wpc);