Moved version check to first header [skip ci]

This commit is contained in:
Andrew Kane
2024-04-25 17:49:25 -07:00
parent cd95d6dfa4
commit f23d7184e9
2 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,12 @@
#ifndef BITUTILS_H
#define BITUTILS_H
#include "postgres.h"
#if PG_VERSION_NUM < 120000
#error "Requires PostgreSQL 12+"
#endif
/* We use two types of dispatching: intrinsics and target_clones */
/* TODO Move to better place */
#ifndef DISABLE_DISPATCH

View File

@@ -12,10 +12,6 @@
#include "utils/sampling.h"
#include "vector.h"
#if PG_VERSION_NUM < 120000
#error "Requires PostgreSQL 12+"
#endif
#define HNSW_MAX_DIM 2000
#define HNSW_MAX_NNZ 1000