mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Fix macro checked for Watcom C++ compilers.
This commit is contained in:
@@ -26,7 +26,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__WATCOM__)
|
||||
#if defined(__WATCOMC__)
|
||||
#include <direct.h>
|
||||
#elif defined(__DJGPP__)
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -26,7 +26,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__WATCOM__)
|
||||
#if defined(__WATCOMC__)
|
||||
#include <direct.h>
|
||||
#elif defined(__DJGPP__)
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -24,7 +24,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(__WATCOM__)
|
||||
#if defined(__WATCOMC__)
|
||||
#include <i86.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.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(__WATCOM__) || defined(__TURBOC__)
|
||||
#if defined(__WATCOMC__) || defined(__TURBOC__)
|
||||
char drivePath[4];
|
||||
union REGS regs;
|
||||
struct SREGS sregs;
|
||||
|
||||
@@ -25,7 +25,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#ifndef AARU_FSTESTER_SETTER_SRC_DOS_H
|
||||
#define AARU_FSTESTER_SETTER_SRC_DOS_H
|
||||
|
||||
#if defined(__WATCOM__)
|
||||
#if defined(__WATCOMC__)
|
||||
#include <direct.h>
|
||||
#define __dos_mkdir(path) mkdir(path)
|
||||
#elif defined(__DJGPP__)
|
||||
@@ -36,7 +36,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#define __dos_mkdir(path) mkdir(path)
|
||||
#endif
|
||||
|
||||
#if defined(__WATCOM__)
|
||||
#if defined(__WATCOMC__)
|
||||
#pragma pack(__push, 1)
|
||||
#else
|
||||
#pragma pack(push, 1)
|
||||
@@ -59,7 +59,7 @@ typedef struct diskfree_ex_t
|
||||
|
||||
unsigned int _dos_getdiskfree_ex(unsigned int drive, struct diskfree_ex_t* diskspace);
|
||||
|
||||
#if defined(__WATCOM__)
|
||||
#if defined(__WATCOMC__)
|
||||
#pragma pack(__pop)
|
||||
#else
|
||||
#pragma pack(pop)
|
||||
|
||||
@@ -26,7 +26,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__WATCOM__)
|
||||
#if defined(__WATCOMC__)
|
||||
#include <direct.h>
|
||||
#elif defined(__DJGPP__)
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -26,7 +26,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__WATCOM__)
|
||||
#if defined(__WATCOMC__)
|
||||
#include <direct.h>
|
||||
#elif defined(__DJGPP__)
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -26,7 +26,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__WATCOM__)
|
||||
#if defined(__WATCOMC__)
|
||||
#include <i86.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user