--- a/mouse.c +++ b/mouse.c @@ -1057,7 +1057,7 @@ and set to 1 if the existing transport if the more expensive sort (e.g. GROUP_RAIL when overwriting GROUP_ROAD). */ -inline int +int mt_erase(int x, int y) { if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN) --- a/pixmap.c +++ b/pixmap.c @@ -390,7 +390,7 @@ likes it in the file. Still need to fix this in autoconf, but for now this will do. */ #if !defined (WIN32) -inline int +int pixmap_index (int x, int y) { return y*pixmap_width + x; --- a/pixmap.h +++ b/pixmap.h @@ -19,7 +19,7 @@ void initialize_pixmap (void); void resize_pixmap (int new_width, int new_height); int pixmap_getpixel (int x, int y); -inline int pixmap_index (int x, int y); +int pixmap_index (int x, int y); int pixmap_getpixel (int x, int y); void pixmap_setpixel (int x, int y, int col); void pixmap_hline (int x1, int y1, int x2, int col); @@ -33,7 +33,7 @@ * Public Inline Functions * ---------------------------------------------------------------------- */ #if defined (WIN32) -inline int +int pixmap_index (int x, int y) { return y*pixmap_width + x; } --- a/readpng.c +++ b/readpng.c @@ -3,6 +3,7 @@ * This file is part of lincity (see COPYRIGHT for copyright information). * ---------------------------------------------------------------------- */ #include +#include #include "png.h" #include "malloc.h" #include "lin-city.h"