Visual Studio 2012 support

This commit is contained in:
Shahram Najm 2017-10-24 17:37:41 +01:00
parent a3e71ee92e
commit aef6a2b8ea
3 changed files with 6 additions and 2 deletions

View File

@ -30,6 +30,10 @@ static int range ()
return (int)(log (DBL_MAX) / log (10))-1;
}
#ifdef ECCODES_ON_WINDOWS
#define log2(a) ( log(a)/1.44269504088896340736 )
#endif
static void factec (int * krep, const double pa, const int knbit, const long kdec, const int range, long * ke, int * knutil)
{
*krep = 0;

View File

@ -177,8 +177,8 @@ int grib_tool_new_handle_action(grib_runtime_options* options,grib_handle* h)
}
if (options->latlon) {
err=0;
double min;
err=0;
int i;
if (!n) n=grib_nearest_new(h,&err);
GRIB_CHECK_NOLINE(err,0);

View File

@ -268,8 +268,8 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h)
}
if (options->latlon) {
err=0;
double min;
err=0;
if (!n) n=grib_nearest_new(h,&err);
if (err == GRIB_NOT_IMPLEMENTED) {
char grid_type[100];