diff options
author | Tom Lane | 2004-09-14 04:21:38 +0000 |
---|---|---|
committer | Tom Lane | 2004-09-14 04:21:38 +0000 |
commit | db64df4b1c569089338b08223e1df913799fa9b5 (patch) | |
tree | 23b19713d40a0f56d4fc952cf33248fdd930115a /contrib/seg/seg.c | |
parent | 92244e8e545197485c0ac39ef223a524e5a1e366 (diff) |
Fix contrib/cube and contrib/seg to compile on Windows.
Andreas Pflug
Diffstat (limited to 'contrib/seg/seg.c')
-rw-r--r-- | contrib/seg/seg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c index e86772ab2b8..ce857aac479 100644 --- a/contrib/seg/seg.c +++ b/contrib/seg/seg.c @@ -14,8 +14,6 @@ #include "segdata.h" -#define max(a,b) ((a) > (b) ? (a) : (b)) -#define min(a,b) ((a) <= (b) ? (a) : (b)) #define abs(a) ((a) < (0) ? (-a) : (a)) /* @@ -924,7 +922,7 @@ restore(char *result, float val, int n) * put a cap on the number of siugnificant digits to avoid nonsense in * the output */ - n = min(n, FLT_DIG); + n = Min(n, FLT_DIG); /* remember the sign */ sign = (val < 0 ? 1 : 0); @@ -946,7 +944,7 @@ restore(char *result, float val, int n) if (exp == 0) { /* use the supplied mantyssa with sign */ - strcpy((char *) index(result, 'e'), ""); + strcpy((char *) strchr(result, 'e'), ""); } else { |