From ac4a6ad369681da4b578be8dda118d4ec74bbf22 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 3 Jun 2011 09:41:00 -0700 Subject: [PATCH] Support for older Compaq C compilers --- Pcap-VMS/pcap-vci/snprintf.c | 4 ++++ Pcap-VMS/pcap-vci/snprintf.h | 4 ++++ 2 files changed, 8 insertions(+) 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