| From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org |
| Subject: | Re: Is "WIN32" #defined in Cygwin builds? |
| Date: | 2015-08-31 18:45:20 |
| Message-ID: | 55E4A0C0.7050301@dunslane.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 08/31/2015 02:21 PM, Tom Lane wrote:
> I started wondering about $subject because we are fairly schizophrenic
> about whether we believe this. For example, only a few lines apart in
> dirmod.c, there are
>
> #if defined(WIN32) || defined(__CYGWIN__)
>
> #if defined(WIN32) && !defined(__CYGWIN__)
>
> Presumably, one of these could be simplified, but I'm not sure which.
>
>
No, and we've made sure not to do that ourselves, or at least I hope we
have. Here's what the cygwin compiler says:
andrew(at)antonio ~/bf
$ touch xx.c
andrew(at)antonio ~/bf
$ gcc -E -dM xx.c | grep WIN
#define __WINT_MAX__ 4294967295U
#define __WINT_MIN__ 0U
#define __SIZEOF_WINT_T__ 4
#define __CYGWIN__ 1
#define __WINT_TYPE__ unsigned int
#define __CYGWIN32__ 1
andrew(at)antonio ~/bf
cheers
andrew
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mason S | 2015-08-31 18:48:31 | Re: Horizontal scalability/sharding |
| Previous Message | dinesh kumar | 2015-08-31 18:43:56 | Re: [PATCH] SQL function to report log message |