diff --git a/src/ar65/objfile.c b/src/ar65/objfile.c index c485c6e75..f24825098 100644 --- a/src/ar65/objfile.c +++ b/src/ar65/objfile.c @@ -35,11 +35,11 @@ #include #include -#ifdef __WATCOMC__ -/* Watcom has the file in the wrong directory */ +#if defined(__WATCOMC__) || defined(_MSC_VER) +/* The Windows compilers have the file in the wrong directory */ # include #else -# include /* FreeBSD needs this */ +# include /* FreeBSD needs this */ # include #endif #include @@ -55,11 +55,11 @@ /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ - + static const char* GetModule (const char* Name) /* Get a module name from the file name */ { diff --git a/src/cl65/main.c b/src/cl65/main.c index 7a458a759..ea06e822f 100644 --- a/src/cl65/main.c +++ b/src/cl65/main.c @@ -38,7 +38,7 @@ #include #include #include -#ifdef __WATCOMC__ +#if defined(__WATCOMC__) || defined(_MSC_VER) # include /* DOS, OS/2 and Windows */ #else # include "spawn.h" /* All others */