Merge branch Ticket80_use_os_strtod_if_above_vs_2015
This commit is contained in:
@@ -13,10 +13,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* epicsStrtod() for systems with broken strtod() routine
|
||||
*/
|
||||
epicsShareFunc double epicsStrtod(const char *str, char **endp);
|
||||
|
||||
/*
|
||||
* Microsoft apparently added strto[u]ll() in VS2013
|
||||
@@ -28,6 +24,19 @@ epicsShareFunc double epicsStrtod(const char *str, char **endp);
|
||||
# define strtoull _strtoui64
|
||||
#endif
|
||||
|
||||
/*
|
||||
* strtod works in MSVC 1900 and mingw, use
|
||||
* the OS version in those and our own otherwise
|
||||
*/
|
||||
#if (_MSC_VER < 1900) && !defined(_MINGW)
|
||||
/*
|
||||
* epicsStrtod() for systems with broken strtod() routine
|
||||
*/
|
||||
epicsShareFunc double epicsStrtod(const char *str, char **endp);
|
||||
#else
|
||||
# define epicsStrtod strtod
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user