summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/postgres_ext.h5
-rw-r--r--src/interfaces/libpq/libpq-fe.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/src/include/postgres_ext.h b/src/include/postgres_ext.h
index bf45c50dcf3..6a8f25a9907 100644
--- a/src/include/postgres_ext.h
+++ b/src/include/postgres_ext.h
@@ -24,6 +24,8 @@
#ifndef POSTGRES_EXT_H
#define POSTGRES_EXT_H
+#include <stdint.h>
+
/*
* Object ID is a fundamental type in Postgres.
*/
@@ -42,6 +44,9 @@ typedef unsigned int Oid;
/* the above needs <stdlib.h> */
+/* deprecated name for int64_t, formerly used in client API declarations */
+typedef int64_t pg_int64;
+
/*
* Identifiers of error message fields. Kept here to keep common
* between frontend and backend, and also to export them to libpq
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index af8004f952a..0852584edae 100644
--- a/src/interfaces/libpq/libpq-fe.h
+++ b/src/interfaces/libpq/libpq-fe.h
@@ -234,9 +234,6 @@ typedef struct pgNotify
struct pgNotify *next; /* list link */
} PGnotify;
-/* deprecated name for int64_t */
-typedef int64_t pg_int64;
-
/* pg_usec_time_t is like time_t, but with microsecond resolution */
typedef int64_t pg_usec_time_t;