]> git.sur5r.net Git - cc65/commitdiff
VC++ fixes
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 9 Jun 2000 08:25:15 +0000 (08:25 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 9 Jun 2000 08:25:15 +0000 (08:25 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@41 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ar65/objfile.c
src/cl65/main.c

index c485c6e75f687d6e74d2e1a87c1f65c28852ac77..f24825098763e48800597ea8f3b3e75b599e2759 100644 (file)
 
 #include <string.h>
 #include <errno.h>
-#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 <sys/utime.h>
 #else
-#  include <sys/types.h>               /* FreeBSD needs this */
+#  include <sys/types.h>               /* FreeBSD needs this */
 #  include <utime.h>
 #endif
 #include <time.h>
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                  Code                                    */
 /*****************************************************************************/
 
 
-
+                            
 static const char* GetModule (const char* Name)
 /* Get a module name from the file name */
 {
index 7a458a75945aa73d00df92d73dbb499afaecd740..ea06e822fdef0bf68f36bb601b4473bac99e38b7 100644 (file)
@@ -38,7 +38,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <errno.h>
-#ifdef __WATCOMC__
+#if defined(__WATCOMC__) || defined(_MSC_VER)
 #  include <process.h>         /* DOS, OS/2 and Windows */
 #else
 #  include "spawn.h"           /* All others */