diff --git a/ncdump/ncdump.c b/ncdump/ncdump.c index 9fea6684b..7f22520f9 100644 --- a/ncdump/ncdump.c +++ b/ncdump/ncdump.c @@ -18,7 +18,7 @@ Research/Unidata. See \ref copyright file for more info. */ #include #endif -#ifdef _WIN32 +#ifdef _MSC_VER #define snprintf _snprintf #include "XGetopt.h" int opterr; diff --git a/ncdump/ocprint.c b/ncdump/ocprint.c index 0c4e0da03..5c90887b3 100644 --- a/ncdump/ocprint.c +++ b/ncdump/ocprint.c @@ -30,7 +30,7 @@ #include "oc.h" #include "ocx.h" -#ifdef _WIN32 +#ifdef _MSC_VER #include "XGetopt.h" int opterr, optind; char* optarg;