]> granicus.if.org Git - postgresql/commit
Autoconfiscate selection of 64-bit int type for 64-bit large object API.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Oct 2012 01:52:07 +0000 (21:52 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Oct 2012 01:52:43 +0000 (21:52 -0400)
commit95d035e66d8e4371d35830d81f39face03cd4c45
tree450c4e30491bd17f6499e8a33c094f9353238f79
parentea72bb8ae527d371ccaf53647540a33224df92a6
Autoconfiscate selection of 64-bit int type for 64-bit large object API.

Get rid of the fundamentally indefensible assumption that "long long int"
exists and is exactly 64 bits wide on every platform Postgres runs on.
Instead let the configure script select the type to use for "pg_int64".

This is a bit of a pain in the rear since we do not want to pollute client
namespace with all the random symbols that pg_config.h defines; instead
we have to create a separate generated header file, "pg_config_ext.h".
But now that the infrastructure is there, we might have the ability to
add some other stuff that's long been wanting in this area.
22 files changed:
configure
configure.in
src/Makefile.global.in
src/bcc32.mak
src/include/.gitignore
src/include/Makefile
src/include/c.h
src/include/pg_config.h.in
src/include/pg_config.h.win32
src/include/pg_config_ext.h.in [new file with mode: 0644]
src/include/pg_config_ext.h.win32 [new file with mode: 0644]
src/include/postgres_ext.h
src/include/storage/large_object.h
src/interfaces/libpq/bcc32.mak
src/interfaces/libpq/fe-lobj.c
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/win32.mak
src/tools/msvc/Install.pm
src/tools/msvc/Solution.pm
src/tools/msvc/clean.bat
src/win32.mak