summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/xditview
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/groff/xditview')
-rw-r--r--gnu/usr.bin/groff/xditview/device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/usr.bin/groff/xditview/device.c b/gnu/usr.bin/groff/xditview/device.c
index 45cce4c6cf98..740f93f72b29 100644
--- a/gnu/usr.bin/groff/xditview/device.c
+++ b/gnu/usr.bin/groff/xditview/device.c
@@ -23,8 +23,14 @@ searching for device and font description files. */
#define WS " \t\r\n"
/* Minimum and maximum values a `signed int' can hold. */
+
+#ifndef INT_MIN
#define INT_MIN (-INT_MAX-1)
+#endif
+#ifndef INT_MAX
#define INT_MAX 2147483647
+#endif
+
#define CHAR_TABLE_SIZE 307