* See the COPYING file in the top-level directory.
*/
-#include <compat/fopen_utf8.h>
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <zlib.h>
-#ifndef _WIN32
-#define CALLBACK
-#ifndef NO_DYLIB
+#if !defined(_WIN32) && !defined(NO_DYLIB)
#include <dlfcn.h>
#endif
-#else
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#endif
#include "cdrcimg.h"
+#undef CALLBACK
+#define CALLBACK
+
#define PFX "cdrcimg: "
#define err(f, ...) fprintf(stderr, PFX f, ##__VA_ARGS__)
int i, ret;
FILE *f;
- f = fopen_utf8(cd_fname, "rb");
+ f = fopen(cd_fname, "rb");
if (f == NULL) {
err("missing file: %s: ", cd_fname);
perror(NULL);
return -1;
}
- f = fopen_utf8(table_fname, "rb");
+ f = fopen(table_fname, "rb");
if (f == NULL) {
err("missing file: %s: ", table_fname);
perror(NULL);
break;
}
- cd_file = fopen_utf8(cd_fname, "rb");
+ cd_file = fopen(cd_fname, "rb");
if (cd_file == NULL) {
err("failed to open: %s: ", table_fname);
perror(NULL);