Merge pull request #1447 from HerveAncher/master

Fix XGetopt.h inclusion for Windows/MinGW
This commit is contained in:
Ward Fisher 2019-08-01 15:25:11 -06:00 committed by GitHub
commit e53481f243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ Research/Unidata. See \ref copyright file for more info. */
#include <fcntl.h>
#endif
#ifdef _WIN32
#ifdef _MSC_VER
#define snprintf _snprintf
#include "XGetopt.h"
int opterr;

View File

@ -30,7 +30,7 @@
#include "oc.h"
#include "ocx.h"
#ifdef _WIN32
#ifdef _MSC_VER
#include "XGetopt.h"
int opterr, optind;
char* optarg;