summaryrefslogtreecommitdiff
path: root/src/include/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port.h')
-rw-r--r--src/include/port.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/port.h b/src/include/port.h
index 436bc83fe38..7e2004b178b 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -385,6 +385,11 @@ extern int isinf(double x);
extern float strtof(const char *nptr, char **endptr);
#endif
+#ifdef HAVE_BUGGY_STRTOF
+extern float pg_strtof(const char *nptr, char **endptr);
+#define strtof(a,b) (pg_strtof((a),(b)))
+#endif
+
#ifndef HAVE_MKDTEMP
extern char *mkdtemp(char *path);
#endif