From 788af6f8541d5f30acec540e4fd3cb24f5347209 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 1 Mar 2017 11:55:28 -0500 Subject: Move atooid() definition to a central place --- src/include/postgres_ext.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include/postgres_ext.h') diff --git a/src/include/postgres_ext.h b/src/include/postgres_ext.h index ae2f0877988..452eae9935e 100644 --- a/src/include/postgres_ext.h +++ b/src/include/postgres_ext.h @@ -39,6 +39,10 @@ typedef unsigned int Oid; #define OID_MAX UINT_MAX /* you will need to include to use the above #define */ +#define atooid(x) ((Oid) strtoul((x), NULL, 10)) +/* the above needs */ + + /* Define a signed 64-bit integer type for use in client API declarations. */ typedef PG_INT64_TYPE pg_int64; -- cgit v1.2.3