diff --git a/Code/PgSQL/rdkit/rdkit.h b/Code/PgSQL/rdkit/rdkit.h index a278884fa..2ff5ad42f 100644 --- a/Code/PgSQL/rdkit/rdkit.h +++ b/Code/PgSQL/rdkit/rdkit.h @@ -39,6 +39,14 @@ extern "C" { #endif #include +#ifdef PG_VERSION_NUM +#if PG_VERSION_NUM >= 160000 +#include +#ifndef Abs +#define Abs(x) ((x) >= 0 ? (x) : -(x)) +#endif +#endif +#endif typedef bytea Mol;