mirror of https://github.com/ecmwf/eccodes.git
Provide round function for Visual Studio 2008
This commit is contained in:
parent
1226e011be
commit
c92634105b
|
@ -199,6 +199,10 @@ static void init_class(grib_accessor_class* c)
|
|||
#define PROCESS_NEW_DATA 1
|
||||
#define PROCESS_ENCODE 2
|
||||
|
||||
#ifdef ECCODES_ON_WINDOWS
|
||||
#define round(a) ( (a) >=0 ? ((a)+0.5) : ((a)-0.5) )
|
||||
#endif
|
||||
|
||||
static int process_elements(grib_accessor* a,int flag);
|
||||
|
||||
typedef int (*codec_element_proc) (grib_context* c,grib_accessor_bufr_data_array* self,int subsetIndex, grib_buffer* b,unsigned char* data,long *pos,int i,long elementIndex,grib_darray* dval,grib_sarray* sval);
|
||||
|
|
Loading…
Reference in New Issue