diff options
| author | Micah Cochran <micahcochran@users.noreply.github.com> | 2016-01-06 11:35:25 -0600 |
|---|---|---|
| committer | Micah Cochran <micahcochran@users.noreply.github.com> | 2016-01-06 11:35:25 -0600 |
| commit | 8761f77995259e47772e5cd901a19a6dc63b50cc (patch) | |
| tree | c8e181cf97f9348d23f2e3cd6528184bc3ed238a /src/pj_strtod.c | |
| parent | c0e44f1f79d433c028f013fb771b3005cbe11a7e (diff) | |
| download | PROJ-8761f77995259e47772e5cd901a19a6dc63b50cc.tar.gz PROJ-8761f77995259e47772e5cd901a19a6dc63b50cc.zip | |
#warning pragma fix for Visual C++
This is to address PR #341 in which Visual C++ stops compile due to encountering a #warning.
Diffstat (limited to 'src/pj_strtod.c')
| -rw-r--r-- | src/pj_strtod.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |
