From d7e5869b0305452533e53dc433f0102df77bbdbc Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 12 Nov 2008 10:38:57 +0000 Subject: [PATCH] added EXPORT to public functions --- lib/png.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/png.c b/lib/png.c index c30f77e..118fbd6 100644 --- a/lib/png.c +++ b/lib/png.c @@ -779,7 +779,7 @@ typedef struct { u32 color; } colornum_t; -int compare_colors(const void*_c1, const void*_c2) { +static int compare_colors(const void*_c1, const void*_c2) { colornum_t*c1 = (colornum_t*)_c1; colornum_t*c2 = (colornum_t*)_c2; return c1->num - c2->num; @@ -1376,11 +1376,11 @@ EXPORT void savePNG(const char*filename, unsigned char*data, int width, int heig fclose(fi); } -void writePNG(const char*filename, unsigned char*data, int width, int height) +EXPORT void writePNG(const char*filename, unsigned char*data, int width, int height) { savePNG(filename, data, width, height, 0); } -void writePalettePNG(const char*filename, unsigned char*data, int width, int height) +EXPORT void writePalettePNG(const char*filename, unsigned char*data, int width, int height) { savePNG(filename, data, width, height, 256); } -- 1.7.10.4