lvandeve / lodepng

PNG encoder and decoder in C and C++.
zlib License
2.09k stars 426 forks source link

Compilation without libc? #7

Closed DeXP closed 5 years ago

DeXP commented 9 years ago

lodepng can work without libc. Maybe, wrap "strlen", "qsort" and "memset" functions like "lodepng_malloc"?

The current implementation is getting enough dirty: https://github.com/DeXP/dxPmdxConverter/blob/master/bmpconvert.c

lvandeve commented 9 years ago

Hi,

I can look into it. A question about this: what is a scenario where this is needed? Which device is this for?

Thanks :)

DeXP commented 9 years ago

Hi! I don't know, where is it really needed. I'm making windows application without dependencies, with minimal EXE-size and maximum functionality. But it is hacking and for fun.

lvandeve commented 5 years ago

this is done now, only one C header (string.h) used for size_t only, and the file loading is optional.