Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8491998

Browse files
committed
Set proper sizes for size_t and void* on 64-bit Windows builds.
Tsutomu Yamada
1 parent 2de9a46 commit 8491998

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/include/pg_config.h.win32

+8
Original file line numberDiff line numberDiff line change
@@ -589,10 +589,18 @@
589589
#define SIZEOF_LONG 4
590590

591591
/* The size of `size_t', as computed by sizeof. */
592+
#ifndef _WIN64
592593
#define SIZEOF_SIZE_T 4
594+
#else
595+
#define SIZEOF_SIZE_T 8
596+
#endif
593597

594598
/* The size of `void *', as computed by sizeof. */
599+
#ifndef _WIN64
595600
#define SIZEOF_VOID_P 4
601+
#else
602+
#define SIZEOF_VOID_P 8
603+
#endif
596604

597605
/* Define to 1 if you have the ANSI C header files. */
598606
#define STDC_HEADERS 1

0 commit comments

Comments
 (0)