shithub: rott

Download patch

ref: ea13cbae7c137f1f5256db3508df75c9ae60e9c5
parent: 9d9785c70279f783721f278bdc3547e303461baa
author: Marc-Alexandre Espiaut <[email protected]>
date: Mon Jun 4 11:22:37 EDT 2018

Removing DOS code rt_util.c

--- a/rott/rt_util.c
+++ b/rott/rt_util.c
@@ -815,10 +815,7 @@
 }
 
 
-#if PLATFORM_DOS
-/* no-op. */
-
-#elif PLATFORM_WIN32
+#if PLATFORM_WIN32
 int _dos_findfirst(char *filename, int x, struct find_t *f)
 {
     long rc = _findfirst(filename, &f->data);
@@ -936,7 +933,6 @@
 #endif
 
 
-#if !PLATFORM_DOS
 void _dos_getdate(struct dosdate_t *date)
 {
     time_t curtime = time(NULL);
@@ -955,7 +951,6 @@
         date->dayofweek = tm->tm_wday + 1;
     }
 }
-#endif
 
 
 void GetPathFromEnvironment( char *fullname, const char *envname, const char *filename )