mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-28 14:52:43 +08:00
Fixed version check for palloc variants, take 2
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)))
|
||||
|
||||
@@ -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)))
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user