--- a/gamut/gamut.h +++ b/gamut/gamut.h @@ -35,9 +35,9 @@ #define MAXGAMN 10 /* Maximum gamut point neighbors returned */ #define NSLOTS 6 /* Number of maximum direction slots */ -struct _vrml; /* Declared in vrml.h, which may be #included after this */ +extern struct _vrml; /* Declared in vrml.h, which may be #included after this */ /* ------------------------------------ */ #define NODE_STRUCT \ int tag; /* Type of node, 1 = vertex, 2 = quad */ \ --- a/spectro/vinflate.c +++ b/spectro/vinflate.c @@ -91,9 +91,9 @@ "uch *slide;" and then malloc'ed in the latter case. */ #define WSIZE 0x8000 -static unsigned int wp; /* current position in slide */ +extern unsigned int wp; /* current position in slide */ static uch slide[32768]; static int vflush_output(unsigned int w) { wp = w; @@ -159,10 +159,10 @@ lookup, and so will not require that too many bits be pulled from the stream. */ -static ulg bb; /* bit buffer */ -static unsigned bk; /* bits in bit buffer */ +extern ulg bb; /* bit buffer */ +extern unsigned bk; /* bits in bit buffer */ static ush vmask_bits[] = { 0x0000, 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff, @@ -238,9 +238,9 @@ #define BMAX 16 /* maximum bit length of any code (16 for explode) */ #define N_MAX 288 /* maximum number of codes in any set */ -static unsigned hufts; /* track memory usage */ +extern unsigned hufts; /* track memory usage */ /* Given a list of code lengths and a maximum table size, make a set of tables to decode that set of codes. Return zero on success, one if the given code set is incomplete (the tables are still built in this