mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Fix contrib/cube and contrib/seg to compile on Windows.
Andreas Pflug
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user