From: kramm Date: Wed, 12 Nov 2008 10:38:57 +0000 (+0000) Subject: added EXPORT to public functions X-Git-Tag: release-0-9-0~832 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=d7e5869b0305452533e53dc433f0102df77bbdbc;p=swftools.git added EXPORT to public functions --- 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); }