diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/fe_utils/string_utils.h | 2 | ||||
-rw-r--r-- | src/include/postgres_ext.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/include/fe_utils/string_utils.h b/src/include/fe_utils/string_utils.h index 8f96a0b9919..6fb7f5e30ec 100644 --- a/src/include/fe_utils/string_utils.h +++ b/src/include/fe_utils/string_utils.h @@ -19,8 +19,6 @@ #include "libpq-fe.h" #include "pqexpbuffer.h" -#define atooid(x) ((Oid) strtoul((x), NULL, 10)) - /* Global variables controlling behavior of fmtId() and fmtQualifiedId() */ extern int quote_all_identifiers; extern PQExpBuffer (*getLocalPQExpBuffer) (void); 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; |