aboutsummaryrefslogtreecommitdiff
path: root/lsystem.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2019-06-29 04:39:01 +0000
committerXin LI <delphij@FreeBSD.org>2019-06-29 04:39:01 +0000
commit6aa86b45318b321ba7e9cc3c221ab9062ddac4a0 (patch)
treeed38a1d35ad0e927ec1b5282deedc86014f9181d /lsystem.c
parentb04073e3aef4b6c7e7d2755a7bbc098e5f2a03f8 (diff)
Diffstat (limited to 'lsystem.c')
-rw-r--r--lsystem.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lsystem.c b/lsystem.c
index 10911ebe15d4..d4f1e7731379 100644
--- a/lsystem.c
+++ b/lsystem.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2017 Mark Nudelman
+ * Copyright (C) 1984-2019 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -19,6 +19,10 @@
#if MSDOS_COMPILER
#include <dos.h>
+#if MSDOS_COMPILER==WIN32C && defined(MINGW)
+#include <direct.h>
+#define setdisk(n) _chdrive((n)+1)
+#else
#ifdef _MSC_VER
#include <direct.h>
#define setdisk(n) _chdrive((n)+1)
@@ -26,6 +30,7 @@
#include <dir.h>
#endif
#endif
+#endif
extern int screen_trashed;
extern IFILE curr_ifile;
@@ -291,7 +296,6 @@ pipe_data(cmd, spos, epos)
{
FILE *f;
int c;
- extern FILE *popen();
/*
* This is structured much like lsystem().