Add definitions to support Microsoft compilers for DOS.

This commit is contained in:
2021-04-11 00:34:10 +01:00
parent a4f2751ce6
commit dccadff4aa
2 changed files with 8 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <i86.h>
#include <stdlib.h>
#include <string.h>
#elif defined(__TURBOC__)
#elif defined(__TURBOC__) || defined(_MSC_VER)
#include <dos.h>
#include <io.h>
#include <stdlib.h>
@@ -43,7 +43,7 @@ Copyright (C) 2011-2021 Natalia Portillo
unsigned int _dos_getdiskfree_ex(unsigned int drive, struct diskfree_ex_t* diskspace)
{
#if defined(__WATCOMC__) || defined(__TURBOC__)
#if defined(__WATCOMC__) || defined(__TURBOC__) || defined(_MSC_VER)
char drivePath[4];
union REGS regs;
struct SREGS sregs;
@@ -190,4 +190,4 @@ unsigned _dos_creatnew(const char* path, int attrib, int* handlep)
return 0;
}
#endif
#endif