fix compilation with modern gcc-11

This addresses missing 'extern'' declarations in header filesr

/usr/bin/ld: lmsim.o:/space/home/laforge/projects/git/linmodem/v34priv.h:179: multiple definition of `trellis_trans_16'; lm.o:/space/home/laforge/projects/git/linmodem/v34priv.h:179: first defined here
This commit is contained in:
Harald Welte 2021-12-29 23:41:35 +01:00
parent c4ca232363
commit 14bfba54a7
2 changed files with 5 additions and 5 deletions

View File

@ -174,9 +174,9 @@ typedef struct V34DSPState {
int JP_received;
} V34DSPState;
u8 trellis_trans_4[256][4];
u8 trellis_trans_8[256][4];
u8 trellis_trans_16[256][4];
extern u8 trellis_trans_4[256][4];
extern u8 trellis_trans_8[256][4];
extern u8 trellis_trans_16[256][4];
/* V34 states */
enum {

View File

@ -38,8 +38,8 @@ typedef struct V90EncodeState {
const s16 *ucode_to_linear; /* table to retrieve the linear values from ucodes */
} V90EncodeState;
const s16 v90_ulaw_ucode_to_linear[128];
const s16 v90_alaw_ucode_to_linear[128];
extern const s16 v90_ulaw_ucode_to_linear[128];
extern const s16 v90_alaw_ucode_to_linear[128];
typedef struct V90DecodeState {
struct sm_state *sm;