Fix some ill-considered ifdefs, per report from Hans-JÏrgen SchÎnig.
This commit is contained in:
parent
58ad65ec2d
commit
11b274f00f
@ -88,12 +88,10 @@ pgtypes_fmt_replace(union un_fmt_comb replace_val, int replace_type, char **outp
|
||||
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
|
||||
"%0.0g", replace_val.double_val);
|
||||
break;
|
||||
#ifdef HAVE_INT64
|
||||
case PGTYPES_TYPE_INT64:
|
||||
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
|
||||
INT64_FORMAT, replace_val.int64_val);
|
||||
break;
|
||||
#endif
|
||||
case PGTYPES_TYPE_UINT:
|
||||
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
|
||||
"%u", replace_val.uint_val);
|
||||
|
@ -29,9 +29,7 @@ union un_fmt_comb
|
||||
char char_val;
|
||||
unsigned long int luint_val;
|
||||
double double_val;
|
||||
#ifdef HAVE_INT64_TIMESTAMP
|
||||
int64 int64_val;
|
||||
#endif
|
||||
};
|
||||
|
||||
int pgtypes_fmt_replace(union un_fmt_comb, int, char **, int *);
|
||||
|
Loading…
Reference in New Issue
Block a user