ps2dev / ps2-packer

Create packed ELF files to run on the PS2
GNU General Public License v2.0
72 stars 28 forks source link

add #include for memcpy to fix compile error on clang 12 #30

Closed mlaux closed 3 years ago

mlaux commented 3 years ago

Let's #include string.h so we get memcpy. Fixes this diagnostic when compiling with clang 12:

../common/lzma/MtDec.c:449:19: error: implicitly declaring library function
      'memcpy' with type 'void *(void *, const void *, unsigned long)'
      [-Werror,-Wimplicit-function-declaration]
rickgaiser commented 3 years ago

Thanks!