full lodecpp features

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2020-02-27 12:49:02 +03:00
parent d1043e2673
commit 4be169f058
2 changed files with 3 additions and 3 deletions

View File

@ -5858,7 +5858,7 @@ unsigned lodepng_encode(unsigned char** out, size_t* outsize,
unsigned alread_added_id_text = 0;
for(i = 0; i != info.text_num; ++i)
{
if(!strcmp(info.text_keys[i], "LodePNG"))
if(!AsciiStrCmp(info.text_keys[i], "LodePNG"))
{
alread_added_id_text = 1;
break;

View File

@ -37,8 +37,8 @@ freely, subject to the following restrictions:
#define LODEPNG_NO_COMPILE_DISK
//#define LODEPNG_NO_COMPILE_ALLOCATORS
//#define LODEPNG_NO_COMPILE_ERROR_TEXT
#define LODEPNG_NO_COMPILE_ANCILLARY_CHUNKS
#define LODEPNG_NO_COMPILE_CPP
//#define LODEPNG_NO_COMPILE_ANCILLARY_CHUNKS
//#define LODEPNG_NO_COMPILE_CPP
// Microsoft compiler has built-in size_t
//#if !defined(_MSC_VER)