aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/less/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/less/defines.h')
-rw-r--r--usr.bin/less/defines.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/usr.bin/less/defines.h b/usr.bin/less/defines.h
index 544749e3bddd..d95ff956bd37 100644
--- a/usr.bin/less/defines.h
+++ b/usr.bin/less/defines.h
@@ -122,10 +122,19 @@
#define LESSKEYINFILE_SYS "/etc/syslesskey"
#define LESSHISTFILE ".lesshst"
-
-/* Settings always true on Unix. */
+/* Autodetect mingw */
+#if defined(__MINGW32__)
+/*
+ * Define MSDOS_COMPILER if compiling under Microsoft C.
+ */
+#define MSDOS_COMPILER WIN32C
/*
+ * Pathname separator character.
+ */
+#define PATHNAME_SEP "\\"
+#else
+/*
* Define MSDOS_COMPILER if compiling under Microsoft C.
*/
#define MSDOS_COMPILER 0
@@ -134,6 +143,9 @@
* Pathname separator character.
*/
#define PATHNAME_SEP "/"
+#endif
+
+/* Settings always true on Unix. */
/*
* The value returned from tgetent on success.
@@ -144,7 +156,7 @@
/*
* HAVE_ANSI_PROTOS is 1 if your compiler supports ANSI function prototypes.
*/
-#define HAVE_ANSI_PROTOS 1
+#define HAVE_ANSI_PROTOS 1
/*
* HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.