Windows: tests: remove unistd.h

This commit is contained in:
Daniel Tipping 2018-12-12 13:25:16 +00:00
parent 287c0d5c81
commit e0f916bac9
3 changed files with 9 additions and 0 deletions

View File

@ -16,7 +16,10 @@
/* #include <errno.h> */
/* #include <string.h> */
#include "grib_api_internal.h"
#ifndef ECCODES_ON_WINDOWS
#include <unistd.h>
#endif
void usage(char* prog) {
printf("usage: %s filename\n",prog);

View File

@ -15,7 +15,10 @@
#include "grib_api.h"
#include <sys/types.h>
#include <sys/stat.h>
#ifndef ECCODES_ON_WINDOWS
#include <unistd.h>
#endif
static void usage(const char* prog) {
printf("usage: %s [-m] file.grib\n",prog);

View File

@ -10,7 +10,10 @@
#include <assert.h>
#include <stdio.h>
#ifndef ECCODES_ON_WINDOWS
#include <unistd.h>
#endif
#include "grib_api.h"