1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-20 05:29:39 +00:00

MingW fixes

git-svn-id: svn://svn.cc65.org/cc65/trunk@447 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-11-19 17:35:07 +00:00
parent 5ad8b34061
commit 93c998d9e8
3 changed files with 7 additions and 5 deletions

View File

@ -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"

View File

@ -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 */
@ -336,7 +336,7 @@ static void Link (void)
{
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) {

View File

@ -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);