aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authororbea2017-01-24 12:56:08 -0800
committerorbea2017-01-24 12:56:08 -0800
commit6e1725abbbe25119c48d9da71b53a6647eeac6cf (patch)
tree7e15df5aeec543d0ecb6e77154d45a046f890d3f /plugins
parentb580cc4f026c8b1facbf794f39fb3a06238dd484 (diff)
downloadpcsx_rearmed-6e1725abbbe25119c48d9da71b53a6647eeac6cf.tar.gz
pcsx_rearmed-6e1725abbbe25119c48d9da71b53a6647eeac6cf.tar.bz2
pcsx_rearmed-6e1725abbbe25119c48d9da71b53a6647eeac6cf.zip
Rename uncompress2 to avoid conflicts with zlib.h on some systems. Fixes https://github.com/libretro/pcsx_rearmed/issues/87
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cdrcimg/cdrcimg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/cdrcimg/cdrcimg.c b/plugins/cdrcimg/cdrcimg.c
index 47371aa..45016bb 100644
--- a/plugins/cdrcimg/cdrcimg.c
+++ b/plugins/cdrcimg/cdrcimg.c
@@ -100,7 +100,7 @@ static long CDRgetTD(unsigned char track, unsigned char *buffer)
return 0;
}
-int uncompress2(void *out, unsigned long *out_size, void *in, unsigned long in_size)
+int uncomp2(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 = uncompress2(cdbuffer->raw[0], &cdbuffer_size, cdbuffer->compressed, size);
+ ret = uncomp2(cdbuffer->raw[0], &cdbuffer_size, cdbuffer->compressed, size);
break;
case CDRC_BZ:
ret = pBZ2_bzBuffToBuffDecompress((char *)cdbuffer->raw, (unsigned int *)&cdbuffer_size,