#include <string.h>
#include <errno.h>
-#if defined(__WATCOMC__) || defined(_MSC_VER)
+#if defined(__WATCOMC__) || defined(_MSC_VER) || defined(__MINGW32__)
/* The Windows compilers have the file in the wrong directory */
# include <sys/utime.h>
#else
#include <time.h>
#include <sys/stat.h>
-#include "../common/xmalloc.h"
+/* common */
+#include "xmalloc.h"
+/* ar65 */
#include "error.h"
#include "objdata.h"
#include "fileio.h"
#include <string.h>
#include <ctype.h>
#include <errno.h>
-#if defined(__WATCOMC__) || defined(_MSC_VER)
+#if defined(__WATCOMC__) || defined(_MSC_VER) || defined(__MINGW32__)
# include <process.h> /* DOS, OS/2 and Windows */
#else
# include "spawn.h" /* All others */
{
unsigned I;
- /* If we have a linker config file given, add it to the command line.
+ /* If we have a linker config file given, add it to the command line.
* Otherwise pass the target to the linker if we have one.
*/
if (LinkerConfig) {
{
#if defined(__WATCOMC__)
int Res = _vbprintf (Buf, BufSize, Format, ap);
-#elif defined(__GNUC__) && !defined(__GO32__)
+#elif defined(__GNUC__) && !defined(__GO32__) && !defined(__MINGW32__)
int Res = vsnprintf (Buf, BufSize, Format, ap);
#elif defined(_MSC_VER)
int Res = _vsnprintf (Buf, BufSize, Format, ap);