Merge pull request #504 from runlevel5/gcc10-fix

Fix multiple definitions for GCC10
This commit is contained in:
Eldred Habert
2020-04-07 15:18:23 +02:00
committed by GitHub
4 changed files with 5 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ struct Mapfile {
int size; int size;
}; };
int depth, colors; extern int depth, colors;
#include "gfx/makepng.h" #include "gfx/makepng.h"
#include "gfx/gb.h" #include "gfx/gb.h"

View File

@@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "gfx/main.h" #include "gfx/gb.h"
void transpose_tiles(struct GBImage *gb, int width) void transpose_tiles(struct GBImage *gb, int width)
{ {

View File

@@ -15,6 +15,8 @@
#include "extern/getopt.h" #include "extern/getopt.h"
#include "version.h" #include "version.h"
int depth, colors;
/* Short options */ /* Short options */
static char const *optstring = "Aa:CDd:Ffhmo:Pp:Tt:uVvx:"; static char const *optstring = "Aa:CDd:Ffhmo:Pp:Tt:uVvx:";

View File

@@ -11,7 +11,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "gfx/main.h" #include "gfx/makepng.h"
static void initialize_png(struct PNGImage *img, FILE * f); static void initialize_png(struct PNGImage *img, FILE * f);
static struct RawIndexedImage *indexed_png_to_raw(struct PNGImage *img); static struct RawIndexedImage *indexed_png_to_raw(struct PNGImage *img);