Skip to content

Commit

Permalink
Remove definitions from headers to avoid linking errors
Browse files Browse the repository at this point in the history
Those were causing linking errors since they were defined multiple times
(whenever it was included somewhere else). ChannelBankIndex was removed
since it was not used anywhere. product_id is already defined on gdigi.c
so it was marked as extern.
  • Loading branch information
vnen committed Jun 15, 2020
1 parent 39398e3 commit 1c2c89f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdigi.h
Expand Up @@ -42,7 +42,7 @@ gboolean debug_flag_is_set (debug_flags_t flag);
#define GNX_CABINET_WARP 263
#define GNX_CHANNEL_FS_MODE 264

unsigned char product_id;
extern unsigned char product_id;

enum {
GNX3K_WAH_TYPE_CRY = 129,
Expand Down Expand Up @@ -1120,7 +1120,7 @@ enum {
GENETX_CHANNEL1_CUSTOM = 2,
GENETX_CHANNEL2_CUSTOM = 3,
GENETX_CHANNEL_CURRENT = 4
} ChannelBankIndex;
};

typedef struct {
int version;
Expand Down

0 comments on commit 1c2c89f

Please sign in to comment.