Commit Graph

47 Commits

Author SHA1 Message Date
d57cc3a3ce Move GetDiskFreeEx implementation in DJGPP to another file as some compilers try to index it's include files. 2021-04-11 00:36:41 +01:00
341fc84ab1 Add support for Zortech and Symantec compilers for DOS. 2021-04-11 00:36:02 +01:00
dccadff4aa Add definitions to support Microsoft compilers for DOS. 2021-04-11 00:35:13 +01:00
a4f2751ce6 Fix pragma for packing in old Watcom C++ compilers. 2021-04-11 00:32:49 +01:00
559fc1c774 Add missing include for Watcom C++ in DOS. 2021-04-11 00:31:52 +01:00
7b344d773d Change how old Borland DOS compilers are detected. 2021-04-11 00:31:35 +01:00
b8e277b363 Cast filename to make some DOS compiler happy. 2021-04-11 00:30:34 +01:00
948526c568 Fix printed error in DOS volume processing. 2021-04-11 00:30:13 +01:00
23c810fd19 Fix macro checked for Watcom C++ compilers. 2021-04-11 00:29:14 +01:00
0c482696c9 Check if DOS attributes are defined already and define them again if not. 2021-04-11 00:24:47 +01:00
98c812904c DOS code clean-up. 2021-04-06 04:16:24 +01:00
8dd1a2a02d Change how errors from FAT32 GetDiskFreeEx() functions are detected when getting volume information in DOS. 2021-04-06 04:16:11 +01:00
e743059ad2 Add missing definitions for Borland C++ 2.0. 2021-04-06 04:15:42 +01:00
cee72b5a84 Remove unneeded include guard. 2021-04-06 04:14:53 +01:00
d7894f526a Change how 16-bit CPU registers are accessed in DOS. 2021-04-06 04:14:29 +01:00
81b0db33ca Add _dos_write, _dos_creat and _dos_creatnew functions for Borland C++ <= 2.0. 2021-04-06 04:13:45 +01:00
beb135b03c Do not use a DOS attribute macro when 0 suffices. 2021-04-06 04:12:55 +01:00
1ff94143a2 Define DOS attribute macros for Borlanc C++ / Turbo C. 2021-04-06 04:11:10 +01:00
8424af120c Rename time.h to dostime.h to prevent conflicts with older compilers. 2021-04-06 04:10:28 +01:00
15f0b7b534 Rename dos.h to dosdefs.h to prevent conflicts with older compilers. 2021-04-06 04:05:53 +01:00
d65be35f01 Add options to write to a log and be quiet. 2021-03-14 22:55:55 +00:00
f4ebb40f33 Fix inclusion guards. 2021-03-14 19:18:18 +00:00
7cc2dcd989 Fix file headers. 2021-03-14 19:14:41 +00:00
7c5f015623 Fixed type sizes. 2021-03-14 18:51:29 +00:00
1fa25644d1 Remove some unused code. 2021-03-14 18:50:14 +00:00
4b75cd3e71 Remove preprocessor guards by OS. Project should now only include the needed files. 2021-03-14 14:38:51 +00:00
4907884a88 Use dosuname to detect the DOS kind and version. 2021-03-11 05:39:01 +00:00
35c64bca84 Some code refactor for dosuname. 2021-03-11 05:29:49 +00:00
ebf91976c3 Use an enumeration for DOS flavor. 2021-03-11 05:22:27 +00:00
4a8f69152b Change dosuname to use a struct. 2021-03-11 05:10:45 +00:00
934f55bfd5 Add dosuname code. 2021-03-11 04:58:41 +00:00
3f35c03934 Minor type fixes to DOS. 2021-03-11 04:56:07 +00:00
8944c844c4 Minor type fixes to DOS. 2021-03-11 04:48:10 +00:00
90bf021197 Fix invalid references to char arrays in DOS. 2021-03-11 04:45:49 +00:00
055a54edbb Fix using signed return codes for DOS. 2021-03-11 04:44:00 +00:00
4542f64b00 Fix include files. 2021-03-11 04:38:38 +00:00
8d65e861d3 Set DOS timestamps using a for loop instead of repeating code. 2021-03-11 04:36:52 +00:00
dc69ae015a Set DOS attributes using a for loop instead of repeating code. 2021-03-11 04:20:58 +00:00
55a32327b1 Implement call for FAT32 GetDiskFreeEx() for DJGPP. 2021-03-11 03:35:35 +00:00
351be36e85 Clean includes for DOS. 2021-03-11 02:56:39 +00:00
71cd201bbb Fix different declaration of mkdir between Watcom and DJGPP. 2021-03-11 02:42:15 +00:00
138c55f887 Fix chdir declaration in DJGPP vs Watcom. 2021-03-11 02:31:41 +00:00
a97bc69276 Add endlines at end of DOS files. 2021-03-11 01:52:34 +00:00
9ce05e8aaf Add cmake file for cross compiling using DJGPP. 2021-03-09 19:35:16 +00:00
7f7555d3e3 Reformat. 2021-03-09 17:38:03 +00:00
90d64abce2 Split DOS code in several files. 2021-03-09 14:52:09 +00:00
d896e638a0 Move DOS source to a folder. 2021-03-09 13:57:35 +00:00