Fix redefinition of typedef Node in numeric.h

Commit 84001a04d5 has added a forward declaration of Node, something
not allowed in C99.

Per buildfarm members longfin and sifaka.

Discussion: https://postgr.es/m/akXt_WYx0dgdH6rf@paquier.xyz
Backpatch-through: 17-18
This commit is contained in:
Michael Paquier 2026-07-02 15:06:12 +09:00
parent ab35b8d252
commit c768637d6c

View file

@ -18,7 +18,7 @@
#include "fmgr.h"
/* forward declaration to avoid node.h include */
typedef struct Node Node;
struct Node;
/*
* Limits on the precision and scale specifiable in a NUMERIC typmod. The
@ -107,7 +107,7 @@ extern Numeric numeric_mod_opt_error(Numeric num1, Numeric num2,
extern int32 numeric_int4_opt_error(Numeric num, bool *have_error);
extern int64 numeric_int8_opt_error(Numeric num, bool *have_error);
extern int32 make_numeric_typmod_safe(int32 precision, int32 scale,
Node *escontext);
struct Node *escontext);
extern Numeric random_numeric(pg_prng_state *state,
Numeric rmin, Numeric rmax);