Z_PREFIX zError function

When a project use zError function,linker can not find z_zError function
This commit is contained in:
koala 2021-06-11 19:29:27 +08:00 committed by GitHub
parent 67a25968f0
commit e00412f6b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1189,3 +1189,10 @@ ZEXTERN const z_crc_t FAR * ZEXPORT z_get_crc_table OF((void))
return get_crc_table();
}
#endif
/* Error function */
ZEXTERN const char * ZEXPORT z_zError OF((int err))
{
/* Just use zlib Error function */
return zError(err);
}