--- ray/src/common/ezxml.c 2015/04/02 16:40:32 2.8 +++ ray/src/common/ezxml.c 2016/03/06 01:13:17 2.9 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ezxml.c,v 2.8 2015/04/02 16:40:32 greg Exp $"; +static const char RCSid[] = "$Id: ezxml.c,v 2.9 2016/03/06 01:13:17 schorsch Exp $"; #endif /* ezxml.c * @@ -25,6 +25,10 @@ static const char RCSid[] = "$Id: ezxml.c,v 2.8 2015/0 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#if defined(_WIN32) || defined(_WIN64) +#define EZXML_NOMMAP +#endif + #include #include #include @@ -38,12 +42,7 @@ static const char RCSid[] = "$Id: ezxml.c,v 2.8 2015/0 #include #include "ezxml.h" -#ifdef _WIN32 -#include -#define read _read -#define open _open -#define close _close -#endif +#include "platform.h" #define EZXML_WS "\t\r\n " /* whitespace */ #define EZXML_ERRL 128 /* maximum error string length */