7 * Defines that make it easier to handle files in the two different MM
8 * contexts: i.e. on Linux and Mac where MM is supported and POSIX I/O
9 * functions work as expected, and on Windows where MM is not supported
10 * and where there isn't POSIX I/O,
14 #define MM_FILE_CLOSE(x) if(x > 3) { close(x); }
15 #define MM_READ_RET ssize_t
19 #define MM_FILE_INIT -1
21 #define MM_FILE_CLOSE(x) if(x != NULL) { fclose(x); }
22 #define MM_READ_RET size_t
23 #define MM_READ(file, dest, sz) fread(dest, 1, sz, file)
26 #define MM_FILE_INIT NULL