From 045fb5ea2c5b3e64e0ed747d4227ee8f1063ca05 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Thu, 12 Jul 2018 07:30:58 +0200 Subject: [PATCH] Define snprintf for older versions of MSVC for #1677 --- driver/others/openblas_get_config.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/driver/others/openblas_get_config.c b/driver/others/openblas_get_config.c index 87a2771..ecafa16 100644 --- a/driver/others/openblas_get_config.c +++ b/driver/others/openblas_get_config.c @@ -35,6 +35,12 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include +#if defined(_WIN32) && defined(_MSC_VER) +#if _MSC_VER < 1900 +#define snprintf _snprintf_s +#endif +#endif + static char* openblas_config_str="" #ifdef USE64BITINT "USE64BITINT " -- 2.7.4