Add infrastructure for compile-time assertions about variable types.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ea473fb2dee7dfe61f8fbdfac9d9da87d84e564e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-09-30T18:38:31Z
Releases: 9.3.0
Add infrastructure for compile-time assertions about variable types.

Currently, the macros only work with fairly recent gcc versions, but there
is room to expand them to other compilers that have comparable features.

Heavily revised and autoconfiscated version of a patch by Andres Freund.

Files

PathChange+/−
config/c-compiler.m4 modified +40 −0
configure modified +119 −0
configure.in modified +2 −0
src/include/c.h modified +41 −0
src/include/pg_config.h.in modified +6 −0
src/include/pg_config.h.win32 modified +6 −0