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:
Andrew Johnson
2006-01-05 21:08:02 +00:00
parent 705d8ccf98
commit 7aa6a2ca98
2 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -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>