X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fcdrcimg%2Fcdrcimg.c;h=b3bee271835418dbed636715c890f1cf16185c59;hb=016c6e93f6db684211f5c8b05433cb500715ba50;hp=9a74908159e9c41c27add2c9ca302822989a20c7;hpb=3918505613cb814f8f5e0e8e0471f7b2a2cd8464;p=pcsx_rearmed.git diff --git a/plugins/cdrcimg/cdrcimg.c b/plugins/cdrcimg/cdrcimg.c index 9a749081..b3bee271 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,8 +414,6 @@ 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