mirror of
https://github.com/cc65/cc65.git
synced 2025-02-04 13:32:54 +00:00
MingW fixes
git-svn-id: svn://svn.cc65.org/cc65/trunk@447 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
5ad8b34061
commit
93c998d9e8
@ -35,7 +35,7 @@
|
||||
|
||||
#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
|
||||
@ -45,8 +45,10 @@
|
||||
#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"
|
||||
|
@ -38,7 +38,7 @@
|
||||
#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 */
|
||||
|
@ -66,7 +66,7 @@ int xvsprintf (char* Buf, size_t BufSize, const char* Format, va_list ap)
|
||||
{
|
||||
#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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user