summaryrefslogtreecommitdiff
path: root/math/xgraph/files/patch-xgraph.h
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-28 23:33:47 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-28 23:33:47 +0000
commita14c0668720dcafde3f60b7659a01d99ec693a41 (patch)
tree9c1a149bc961f7cd84b7aa93a2d61fec3d0f9685 /math/xgraph/files/patch-xgraph.h
parentRename mail/ patch-xy patches to reflect the files they modify. (diff)
Rename math/ patch-xy patches to reflect the files they modify.
Notes
Notes: svn path=/head/; revision=363276
Diffstat (limited to 'math/xgraph/files/patch-xgraph.h')
-rw-r--r--math/xgraph/files/patch-xgraph.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/math/xgraph/files/patch-xgraph.h b/math/xgraph/files/patch-xgraph.h
new file mode 100644
index 000000000000..a89aaf4b1730
--- /dev/null
+++ b/math/xgraph/files/patch-xgraph.h
@@ -0,0 +1,39 @@
+--- xgraph.h.orig Thu Jul 17 03:40:41 1997
++++ xgraph.h Fri Dec 10 03:10:48 1999
+@@ -5,7 +5,12 @@
+ #ifndef _XGRAPH_H_
+ #define _XGRAPH_H_
+
++#include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include <X11/Xos.h>
++#undef index
++#undef rindex
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
+ #include <X11/cursorfont.h>
+@@ -33,20 +38,9 @@
+ extern void ho_dialog(); /* Hardcopy dialog */
+ extern void set_X(); /* Initializes X device */
+
+-#if 0
+-/* To make lint happy */
+-extern char *malloc();
+-extern char *realloc();
+-extern char *sprintf();
+-extern char *strcpy();
+-extern char *strcat();
+-extern char *rindex();
+-extern char *index();
+-extern void exit();
+-extern void free();
+-extern double atof();
++#ifndef MAX
++#define MAX(a,b) ((a) > (b) ? (a) : (b))
++#define MIN(a,b) ((a) < (b) ? (a) : (b))
+ #endif
+-
+-extern void abort();
+
+ #endif /* _XGRAPH_H_ */