Skip to content

Commit 6fe25c1

Browse files
committed
Change SIZEOF_BOOL to 1 for Windows.
For some reason it was previously defined as 0, which is silly. The only effect was to disable use of <stdbool.h>, which commit b2328bf intended to make possible. Thomas Munro Discussion: https://postgr.es/m/CAEepm%3D3%3DTDYEXUEcHpEx%2BTwc31wo7PA0oBAiNt6sWmq93MW02A%40mail.gmail.com
1 parent 2993435 commit 6fe25c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/pg_config.h.win32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@
615615
#define PG_VERSION_STR "Uninitialized version string (win32)"
616616

617617
/* The size of `bool', as computed by sizeof. */
618-
#define SIZEOF_BOOL 0
618+
#define SIZEOF_BOOL 1
619619

620620
/* The size of `long', as computed by sizeof. */
621621
#define SIZEOF_LONG 4

0 commit comments

Comments
 (0)