X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fcdrcimg%2Fcdrcimg.c;h=f1e077738d1b3618e1a5a45ac0f875a63184ee42;hb=1bedbd6f272bd83af54c80eb0089ae1d6f4561a2;hp=91cf1cad1795976b0c3a10207f1824df4b6191af;hpb=3de7d67356c1db36689ae53156944426d77f418f;p=pcsx_rearmed.git diff --git a/plugins/cdrcimg/cdrcimg.c b/plugins/cdrcimg/cdrcimg.c index 91cf1cad..f1e07773 100644 --- a/plugins/cdrcimg/cdrcimg.c +++ b/plugins/cdrcimg/cdrcimg.c @@ -14,7 +14,9 @@ #include #ifndef _WIN32 #define CALLBACK +#ifndef NO_DYLIB #include +#endif #else #define WIN32_LEAN_AND_MEAN #include @@ -285,7 +287,7 @@ static long CDRinit(void) return -1; } } -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(NO_DYLIB) if (pBZ2_bzBuffToBuffDecompress == NULL) { void *h = dlopen("/usr/lib/libbz2.so.1", RTLD_LAZY); if (h == NULL)