summaryrefslogtreecommitdiff
path: root/src/include/pg_config.h.in
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-12-31 19:41:37 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-12-31 19:41:37 +0000
commit85d02a6586012edc385a420ebaca1c8ce4e93390 (patch)
tree4331782a9095429f06b9da7b200538d596d08380 /src/include/pg_config.h.in
parent8abb0110479382b1873715052933f600d682654c (diff)
downloadpostgresql-85d02a6586012edc385a420ebaca1c8ce4e93390.tar.gz
Redefine Datum as uintptr_t, instead of unsigned long.
This is more in keeping with modern practice, and is a first step towards porting to Win64 (which has sizeof(pointer) > sizeof(long)). Tsutomu Yamada, Magnus Hagander, Tom Lane
Diffstat (limited to 'src/include/pg_config.h.in')
-rw-r--r--src/include/pg_config.h.in20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 1af24681fd..a3a80f053b 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -236,6 +236,9 @@
/* Define to 1 if the system has the type `int8'. */
#undef HAVE_INT8
+/* Define to 1 if the system has the type `intptr_t'. */
+#undef HAVE_INTPTR_T
+
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
@@ -599,6 +602,9 @@
/* Define to 1 if the system has the type `uint8'. */
#undef HAVE_UINT8
+/* Define to 1 if the system has the type `uintptr_t'. */
+#undef HAVE_UINTPTR_T
+
/* Define to 1 if the system has the type `union semun'. */
#undef HAVE_UNION_SEMUN
@@ -705,15 +711,15 @@
RELSEG_SIZE requires an initdb. */
#undef RELSEG_SIZE
+/* The size of `long', as computed by sizeof. */
+#undef SIZEOF_LONG
+
/* The size of `off_t', as computed by sizeof. */
#undef SIZEOF_OFF_T
/* The size of `size_t', as computed by sizeof. */
#undef SIZEOF_SIZE_T
-/* The size of `unsigned long', as computed by sizeof. */
-#undef SIZEOF_UNSIGNED_LONG
-
/* The size of `void *', as computed by sizeof. */
#undef SIZEOF_VOID_P
@@ -827,9 +833,17 @@
#undef inline
#endif
+/* Define to the type of a signed integer type wide enough to hold a pointer,
+ if such a type exists, and if the system does not define it. */
+#undef intptr_t
+
/* Define to empty if the C compiler does not understand signed types. */
#undef signed
+/* Define to the type of an unsigned integer type wide enough to hold a
+ pointer, if such a type exists, and if the system does not define it. */
+#undef uintptr_t
+
/* Define to empty if the keyword `volatile' does not work. Warning: valid
code using `volatile' can become incorrect without. Disable with care. */
#undef volatile