mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Merge pull request #504 from runlevel5/gcc10-fix
Fix multiple definitions for GCC10
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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:";
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user