X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fcdrcimg%2Fcdrcimg.c;h=047357ac3519854e994e844c025e1ece2ccee6f0;hb=78de2879b23476890019dd434178b463b649da17;hp=f1e077738d1b3618e1a5a45ac0f875a63184ee42;hpb=1bedbd6f272bd83af54c80eb0089ae1d6f4561a2;p=pcsx_rearmed.git diff --git a/plugins/cdrcimg/cdrcimg.c b/plugins/cdrcimg/cdrcimg.c index f1e07773..047357ac 100644 --- a/plugins/cdrcimg/cdrcimg.c +++ b/plugins/cdrcimg/cdrcimg.c @@ -12,18 +12,15 @@ #include #include #include -#ifndef _WIN32 -#define CALLBACK -#ifndef NO_DYLIB +#if !defined(_WIN32) && !defined(NO_DYLIB) #include #endif -#else -#define WIN32_LEAN_AND_MEAN -#include -#endif #include "cdrcimg.h" +#undef CALLBACK +#define CALLBACK + #define PFX "cdrcimg: " #define err(f, ...) fprintf(stderr, PFX f, ##__VA_ARGS__) @@ -417,6 +414,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