git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fae20a5
)
added EXPORT to public functions
author
kramm
<kramm>
Wed, 12 Nov 2008 10:38:57 +0000
(10:38 +0000)
committer
kramm
<kramm>
Wed, 12 Nov 2008 10:38:57 +0000
(10:38 +0000)
lib/png.c
patch
|
blob
|
history
diff --git
a/lib/png.c
b/lib/png.c
index
c30f77e
..
118fbd6
100644
(file)
--- a/
lib/png.c
+++ b/
lib/png.c
@@
-779,7
+779,7
@@
typedef struct {
u32 color;
} colornum_t;
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;
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);
}
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);
}
{
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);
}
{
savePNG(filename, data, width, height, 256);
}