From 8761f77995259e47772e5cd901a19a6dc63b50cc Mon Sep 17 00:00:00 2001 From: Micah Cochran Date: Wed, 6 Jan 2016 11:35:25 -0600 Subject: #warning pragma fix for Visual C++ This is to address PR #341 in which Visual C++ stops compile due to encountering a #warning. --- src/pj_strtod.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pj_strtod.c b/src/pj_strtod.c index 9aac07e5..7c2da9a7 100644 --- a/src/pj_strtod.c +++ b/src/pj_strtod.c @@ -76,7 +76,13 @@ static char* pj_replace_point_by_locale_point(const char* pszNumber, char point, char* pszWorkBuffer) { #if !defined(HAVE_LOCALECONV) || defined(_WIN32_WCE) + +#if defined(_MSC_VER) /* Visual C++ */ +#pragma message("localeconv not available") +#else #warning "localeconv not available" +#endif + static char byPoint = 0; if (byPoint == 0) { -- cgit v1.2.3