diff --git a/ncdump/ncvalidator.c b/ncdump/ncvalidator.c index 4c246109f..cf3cac18f 100644 --- a/ncdump/ncvalidator.c +++ b/ncdump/ncvalidator.c @@ -73,10 +73,10 @@ THIS SOFTWARE. #include /* read() getopt() */ #endif -#ifdef _WIN32 +#ifdef _MSC_VER +#include "XGetopt.h" #include #define snprintf _snprintf -#include "XGetopt.h" #endif #define X_ALIGN 4