]> granicus.if.org Git - postgresql/commitdiff
Change SIZEOF_BOOL to 1 for Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 May 2018 04:21:21 +0000 (00:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 May 2018 04:21:21 +0000 (00:21 -0400)
For some reason it was previously defined as 0, which is silly.  The only
effect was to disable use of <stdbool.h>, which commit b2328bf62 intended
to make possible.

Thomas Munro

Discussion: https://postgr.es/m/CAEepm%3D3%3DTDYEXUEcHpEx%2BTwc31wo7PA0oBAiNt6sWmq93MW02A%40mail.gmail.com

src/include/pg_config.h.win32

index e776b34f223ee831fad91cf60adb32e879f9e657..9149c7ad376691e4c6ff6cad62be86eaf8a6b3b3 100644 (file)
 #define PG_VERSION_STR "Uninitialized version string (win32)"
 
 /* The size of `bool', as computed by sizeof. */
-#define SIZEOF_BOOL 0
+#define SIZEOF_BOOL 1
 
 /* The size of `long', as computed by sizeof. */
 #define SIZEOF_LONG 4