lvandeve / lodepng

PNG encoder and decoder in C and C++.
zlib License
2.07k stars 422 forks source link

add lodepng.c to simplify build process for c #28

Open jeffboody opened 8 years ago

jeffboody commented 8 years ago

Would you consider including this change so that the lodepng.cpp file does not need to be renamed for C?

lvandeve commented 8 years ago

Hi, it's indeed a bit odd that it has to be like this, but keeping two files up to date is also not guaranteed to be perfect, so I'd prefer to leave it as-is, sorry for the small inconvenience

jeffboody commented 8 years ago

I think you are under the impression that I simply made a duplicate copy of the cpp file. But I actually just included it from the c file. There is nothing extra to keep up-to-date because the only implementation is in the cpp file.

Can you take another look at the patch?

lvandeve commented 8 years ago

Hmm, it's a way indeed... I'm considering it. But it's still odd, just like the current "rename to c" version. So I might as well keep the current odd solution. Not sure yet :)

miniupnp commented 3 years ago

Why not a symbolic link ?