summaryrefslogtreecommitdiff
path: root/src/include/postgres_ext.h
diff options
context:
space:
mode:
authorPeter Eisentraut2017-03-01 16:55:28 +0000
committerPeter Eisentraut2017-03-01 16:55:28 +0000
commit788af6f8541d5f30acec540e4fd3cb24f5347209 (patch)
tree16150f8aa906369c13578922ed33636c530bd529 /src/include/postgres_ext.h
parentb5a388392dab4c4a7c0fbd6cd0ad7421eabfc5cf (diff)
Move atooid() definition to a central place
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;