Better fix to the epicsStrtod problem: Don't compile our function if epicsStrtod
is a macro; that way you can't set a breakpoint on it which would never fire.
This commit is contained in:
@@ -43,9 +43,8 @@ epicsShareFunc int epicsScanFloat(const char *str, float *dest)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef epicsStrtod
|
||||
# undef epicsStrtod
|
||||
#endif
|
||||
/* Systems with a working strtod() just #define epicsStrtod strtod */
|
||||
#ifndef epicsStrtod
|
||||
epicsShareFunc double epicsStrtod(
|
||||
const char *str, char **endp)
|
||||
{
|
||||
@@ -88,3 +87,4 @@ epicsShareFunc double epicsStrtod(
|
||||
*endp = (char *)cp;
|
||||
return num / den;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -18,7 +18,6 @@ extern "C" {
|
||||
|
||||
epicsShareFunc int epicsScanDouble(const char *str, double *dest);
|
||||
epicsShareFunc int epicsScanFloat(const char *str, float *dest);
|
||||
epicsShareFunc double epicsStrtod(const char *str, char **endp);
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <osdStrtod.h>
|
||||
|
||||
Reference in New Issue
Block a user