Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3102 closed defect (fixed)

Can't compile under windows mingw64 anymore

Reported by: robe Owned by: robe
Priority: blocker Milestone: PostGIS 2.1.8
Component: utils/loader-dumper Version: 2.1.x
Keywords: Cc:

Description

shp2pgsql-core.c:1797:3: warning: implicit declaration of function 'setlocale' [-Wimplicit-function-declaration]
   char *oldlocale = setlocale(LC_NUMERIC, "C");
   ^
shp2pgsql-core.c:1797:31: error: 'LC_NUMERIC' undeclared (first use in this function)
   char *oldlocale = setlocale(LC_NUMERIC, "C");

This seems to have started happening at r13439 accoding to winnie

Change History (5)

comment:1 by robe, 9 years ago

Owner: changed from robe to pramsey

comment:2 by robe, 9 years ago

Owner: changed from pramsey to robe

comment:3 by robe, 9 years ago

Got a little impatient so fixed myself. Not sure how the heck this works on other platforms without this include. Fixed at r13445

comment:4 by robe, 9 years ago

Resolution: fixed
Status: newclosed

comment:5 by robe, 9 years ago

Milestone: PostGIS 2.2.0PostGIS 2.1.8

Same issue with 2.1 branch fixed at r13447

Note: See TracTickets for help on using tickets.