maxmind / geoipupdate-legacy

GeoIP update client code
GNU General Public License v2.0
258 stars 63 forks source link

ERROR clash #36

Closed gvanem closed 7 years ago

gvanem commented 9 years ago

You seems to have no Windows users since compiling bin/geoipupdate.c on TDM-gcc 5.1 (Win 8.1), I get:

In file included from f:/MingW32/TDM-gcc/x86_64-w64-mingw32/include/windows.h:71:0,
                 from f:/MingW32/TDM-gcc/x86_64-w64-mingw32/include/winsock2.h:23,
                 from f:/Mingw32/src/inet/curl/include/curl/curl.h:62,
                 from bin/geoipupdate.h:6,
                 from bin/geoipupdate.c:2:
bin/geoipupdate.c:17:18: error: expected identifier or '(' before numeric constant
 static const int ERROR = 1;
                  ^

The fix is easy enough.