Fixed version check for palloc variants, take 2

This commit is contained in:
Andrew Kane
2026-07-27 22:30:23 -07:00
parent 0b2d92bc4f
commit 2a7b954beb
5 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@
#include "parser/scansup.h"
#endif
#if PG_VERSION_NUM < 140600
#if PG_VERSION_NUM < 140006
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
#endif

View File

@@ -105,7 +105,7 @@ typedef Pointer Item;
#define SeedRandom(seed) srandom(seed)
#endif
#if PG_VERSION_NUM < 140600
#if PG_VERSION_NUM < 140006
#define palloc_object(type) ((type *) palloc(sizeof(type)))
#define palloc0_object(type) ((type *) palloc0(sizeof(type)))
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))

View File

@@ -89,7 +89,7 @@ typedef Pointer Item;
#define SeedRandom(seed) srandom(seed)
#endif
#if PG_VERSION_NUM < 140600
#if PG_VERSION_NUM < 140006
#define palloc_object(type) ((type *) palloc(sizeof(type)))
#define palloc0_object(type) ((type *) palloc0(sizeof(type)))
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))

View File

@@ -26,7 +26,7 @@
#include "parser/scansup.h"
#endif
#if PG_VERSION_NUM < 140600
#if PG_VERSION_NUM < 140006
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
#endif

View File

@@ -30,7 +30,7 @@
#include "parser/scansup.h"
#endif
#if PG_VERSION_NUM < 140600
#if PG_VERSION_NUM < 140006
#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count)))
#endif