Open jasongaoks opened 8 years ago
fixed for the free. Will look into doing similar for sort, or just implement one :)
What about memcpy, is that one available for you? Which platform are you using by the way? What is available?
There's no compile error but a link error. It says"unresolved external ...". I implement memcpy in another c source. And it compiles. So it's better to implement memcpy in lodepng. BTW, I got some other errors when I update lodepng to version 20160418. mallloc(line733) and free(line754) can be replaced with lodepng_malloc and lodepng_free. And I got a warning in line 4710, says outsize may be uninitialized. I moved the '}' in line 4707 behind the next "if(!state->error)" to satisfy the compile. But I'm not sure if it's right. Thanks
Fixed the uninitialized warning by initializing it to 0.
If memcpy can be linked in like you described, then I guess I won't deal with adding extra #defines for that one in lodepng.c for now, if that's ok :)
Yes, that's OK for me. Thanks, Lode:)
it can load png convert to bmp?
Not on its own, but this example can: https://github.com/lvandeve/lodepng/blob/master/examples/example_png2bmp.cpp that's off topic in this issue though
Build error when there is no stdlib. Better wap qsort(in line 798) with "lodepng_qsort", and wrap "free"(in line 5348) with "lodepng_free".