ECC-777: Compiling with gcc and -std=c99 fails

This commit is contained in:
Shahram Najm 2018-11-15 13:25:06 +00:00
parent ae6ed8a638
commit e30031747c
4 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,9 @@
#include "eccodes.h"
#include <assert.h>
extern char *optarg;
extern int optind;
static void usage(const char* prog)
{
printf("usage: %s [-a|-d] infile\n",prog);

View File

@ -13,6 +13,9 @@
#include <assert.h>
#include <float.h>
extern char *optarg;
extern int optind;
#define STR_EQUAL(s1, s2) (strcmp((s1), (s2)) == 0)
static int get_packing_type_code(const char* packingType)

View File

@ -10,6 +10,9 @@
#include "grib_tools.h"
extern char *optarg;
extern int optind;
static void usage_and_exit(const char* progname) {
printf("\nUsage: %s [-v] [-d] [-s]\n",progname);
exit(1);

View File

@ -14,6 +14,9 @@
*/
#include "grib_tools.h"
extern char *optarg;
extern int optind;
#ifdef ECCODES_ON_WINDOWS
/* Microsoft Windows Visual Studio support */
#include "wingetopt.h"