Fix some ill-considered ifdefs, per report from Hans-JÏrgen SchÎnig.

This commit is contained in:
Tom Lane 2003-09-21 17:42:22 +00:00
parent 58ad65ec2d
commit 11b274f00f
2 changed files with 0 additions and 4 deletions

View File

@ -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);

View File

@ -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 *);