mirror of https://github.com/ecmwf/eccodes.git
Visual Studio 2012 support
This commit is contained in:
parent
a3e71ee92e
commit
aef6a2b8ea
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue