Browse Source

simplified calls to round

richarddobson 2 weeks ago
parent
commit
96b83f440b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      dev/grain/grain.c

+ 4 - 0
dev/grain/grain.c

@@ -36,6 +36,10 @@
 
 
 #include <sfsys.h>
 #include <sfsys.h>
 
 
+//#ifdef unix 
+#define round(x) lround((x))
+//#endif
+
 static int  grains(int *ibufposition,int bufno,int *crosbuf,int *inithole,int *grainstart,int * is_first_grain,
 static int  grains(int *ibufposition,int bufno,int *crosbuf,int *inithole,int *grainstart,int * is_first_grain,
             int *gapcnt,int *holecnt,int *obufpos,int *graincnt,int chans,int *grainadjusted,
             int *gapcnt,int *holecnt,int *obufpos,int *graincnt,int chans,int *grainadjusted,
             double samptotime,double **env,double **envstep,double *envel_val,int winsize,dataptr dz);
             double samptotime,double **env,double **envstep,double *envel_val,int winsize,dataptr dz);