#include "xbt/base.h"
#include "xbt/misc.h"
-#ifdef _XBT_WIN32
+#ifdef _WIN32
# include <windows.h>
#endif
#include <stdarg.h>
#include <stdio.h>
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
-
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <fcntl.h>
-#ifdef _XBT_WIN32
+#ifdef _WIN32
#ifndef EWOULDBLOCK
#define EWOULDBLOCK WSAEWOULDBLOCK
#endif
#define S_IWGRP 0
#endif
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-
#ifndef O_BINARY
# define O_BINARY 0
#endif