mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Add definitions to support Microsoft compilers for DOS.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user