plugins: Fix build of unai/neon
[pcsx_rearmed.git] / plugins / cdrcimg / cdrcimg.c
index 45016bb..9a74908 100644 (file)
@@ -100,7 +100,7 @@ static long CDRgetTD(unsigned char track, unsigned char *buffer)
        return 0;
 }
 
-int uncomp2(void *out, unsigned long *out_size, void *in, unsigned long in_size)
+static int uncompress2_pcsx(void *out, unsigned long *out_size, void *in, unsigned long in_size)
 {
        static z_stream z;
        int ret = 0;
@@ -201,7 +201,7 @@ static long CDRreadTrack(unsigned char *time)
                ret = uncompress(cdbuffer->raw[0], &cdbuffer_size, cdbuffer->compressed, size);
                break;
        case CDRC_ZLIB2:
-               ret = uncomp2(cdbuffer->raw[0], &cdbuffer_size, cdbuffer->compressed, size);
+               ret = uncompress2_pcsx(cdbuffer->raw[0], &cdbuffer_size, cdbuffer->compressed, size);
                break;
        case CDRC_BZ:
                ret = pBZ2_bzBuffToBuffDecompress((char *)cdbuffer->raw, (unsigned int *)&cdbuffer_size,
@@ -417,6 +417,8 @@ static long CDRopen(void)
        char *ext;
        FILE *f = NULL;
 
+       printf("%s cd_file=%d\n", __func__, cd_file == NULL ? 0 : 1);
+
        if (cd_file != NULL)
                return 0; // it's already open