Wincrypt.h vs wincrypt.h

Started by Andrew Dunstanabout 9 years ago2 messageshackers
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

Commit fe0a0b59 included this line:

#include <Wincrypt.h>

On Windows file names are not case sensitive, so the "W" works fine, but
as I discovered this morning, if you're cross-compiling on Linux it
matters very much, and mingw-w64 ships headers with lower case file
names, in this case "wincrypt.h". Therefore, unless there's an objection
I propose to lower case that "W".

cheers

andrew

--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Magnus Hagander
magnus@hagander.net
In reply to: Andrew Dunstan (#1)
Re: Wincrypt.h vs wincrypt.h

On Fri, Apr 14, 2017 at 9:27 PM, Andrew Dunstan <
andrew.dunstan@2ndquadrant.com> wrote:

Commit fe0a0b59 included this line:

#include <Wincrypt.h>

On Windows file names are not case sensitive, so the "W" works fine, but
as I discovered this morning, if you're cross-compiling on Linux it
matters very much, and mingw-w64 ships headers with lower case file
names, in this case "wincrypt.h". Therefore, unless there's an objection
I propose to lower case that "W".

+1. Regardless of the cross compiling, I believe using lowercase is more or
less the convention on Windows for this.

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/&gt;
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/&gt;