Small patch to fix windows build

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Small patch to fix windows build
Date: 2014-08-02 00:30:56
Message-ID: CAApHDvp2BSg9vN4L0L1KM-sZEWbK_aZXm1v7hxkY5tZE_xUHPA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

ed802e7 seems to have broken the windows builds.

.\contrib\pgbench\pgbench.c(530): error C2065: 'M_PI' : undeclared
identifier

The attached fixes the problem. It seems all other uses of M_PI have
added the same code to the .c file rather than any header file,
perhaps a better patch would fix up all 3 of these locations and stick
that code in a header file, but I don't really know where at the
moment. This at least should get the build running again.

Regards

David Rowley

Attachment Content-Type Size
pgbench_M_PI_fix.patch application/octet-stream 370 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message David G Johnston 2014-08-02 00:32:37 Re: Proposed changing the definition of decade for date_trunc and extract
Previous Message Mike Swanson 2014-08-02 00:02:58 Proposed changing the definition of decade for date_trunc and extract