GRIB-357: improve portablity (for MinGW on Windows)

This commit is contained in:
Shahram Najm 2013-04-24 13:32:59 +01:00
parent 95b82e663a
commit a167723a8e
2 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,7 @@ extern "C" {
#include <string.h>
#include <sys/types.h>
#ifndef GRIB_ON_WINDOWS
#include <sys/times.h>
#include <sys/time.h>
#endif
#include <math.h>

View File

@ -9,14 +9,15 @@
*/
#include "grib_api_internal.h"
#if GRIB_TIMER
#ifndef GRIB_ON_WINDOWS
# include <sys/time.h>
# include <time.h>
# include <sys/resource.h>
#endif
#if GRIB_TIMER
static grib_timer *timers = NULL;
int false=0;
int true=1;