diff --git a/Pcap-VMS/pcap-vci/snprintf.c b/Pcap-VMS/pcap-vci/snprintf.c index 33cee60e..1af52f08 100644 --- a/Pcap-VMS/pcap-vci/snprintf.c +++ b/Pcap-VMS/pcap-vci/snprintf.c @@ -187,8 +187,12 @@ #if __CRTL_VER >= 70312000 #define HAVE_SNPRINTF #else +#ifdef __DECC_VER +#if __DECC_VER > 60590001 #pragma message disable NOTINCRTL #endif +#endif +#endif /* Define HAVE_SNPRINTF if your system already has snprintf and vsnprintf. * diff --git a/Pcap-VMS/pcap-vci/snprintf.h b/Pcap-VMS/pcap-vci/snprintf.h index 5edfed5a..ddcd24ef 100644 --- a/Pcap-VMS/pcap-vci/snprintf.h +++ b/Pcap-VMS/pcap-vci/snprintf.h @@ -7,8 +7,12 @@ #if __CRTL_VER >= 70312000 #define HAVE_SNPRINTF #else +#ifdef __DECC_VER +#if __DECC_VER > 60590001 #pragma message disable NOTINCRTL #endif +#endif +#endif #ifdef HAVE_SNPRINTF #include