Skip to content
Snippets Groups Projects
Commit 08842749 authored by Mikhail Vanyulin's avatar Mikhail Vanyulin
Browse files

bball: fix multiple definition linking error


Build fails with following errors:
ld: git/testcases/bball/tga_reader.h:34: multiple definition of
`TGA_READER_ABGR'; git/testcases/bball/tga_reader.h:34: first defined here
ld: git/testcases/bball/tga_reader.h:33: multiple definition of
`TGA_READER_ARGB'; git/testcases/bball/tga_reader.h:33: first defined here

Add extern to those definitions in header file.

Signed-off-by: default avatarMikhail Vanyulin <mikhail.vanyulin@rtsoft.de>
parent 88b2548c
No related branches found
No related tags found
1 merge request!137bball: fix multiple definition linking error
......@@ -30,8 +30,8 @@ typedef struct _TGA_ORDER {
int alphaShift;
} TGA_ORDER;
const TGA_ORDER *TGA_READER_ARGB;
const TGA_ORDER *TGA_READER_ABGR;
extern const TGA_ORDER *TGA_READER_ARGB;
extern const TGA_ORDER *TGA_READER_ABGR;
void *tgaMalloc(size_t size);
void tgaFree(void *memory);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment