diff options
author | Peter Eisentraut | 2017-03-01 16:55:28 +0000 |
---|---|---|
committer | Peter Eisentraut | 2017-03-01 16:55:28 +0000 |
commit | 788af6f8541d5f30acec540e4fd3cb24f5347209 (patch) | |
tree | 16150f8aa906369c13578922ed33636c530bd529 /src/include/postgres_ext.h | |
parent | b5a388392dab4c4a7c0fbd6cd0ad7421eabfc5cf (diff) |
Move atooid() definition to a central place
Diffstat (limited to 'src/include/postgres_ext.h')
-rw-r--r-- | src/include/postgres_ext.h | 4 |
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; |