summaryrefslogtreecommitdiff
path: root/src/include/postgres_ext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/postgres_ext.h')
-rw-r--r--src/include/postgres_ext.h4
1 files changed, 4 insertions, 0 deletions
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 <limits.h> to use the above #define */
+#define atooid(x) ((Oid) strtoul((x), NULL, 10))
+/* the above needs <stdlib.h> */
+
+
/* Define a signed 64-bit integer type for use in client API declarations. */
typedef PG_INT64_TYPE pg_int64;