#include <errno.h>
#include <ctype.h> /* For tolower() */
-#ifdef HAVE_XLOCALE_H
-/* Needed on BSD/OS X for e.g. strtod_l */
-#include <xlocale.h>
+#ifdef HAVE_XLOCALE_H\r
+/* Needed on BSD/OS X for e.g. strtod_l */\r
+#include <xlocale.h>\r
#endif
#ifdef G_OS_WIN32
g_ascii_strtod (const gchar *nptr,
gchar **endptr)
{
- g_return_val_if_fail (nptr != NULL, 0);
-
-#ifdef HAVE_STRTOD_L
- errno = 0;
-
- return strtod_l (nptr, endptr, get_C_locale ());
-#else
gchar *fail_pos;
gdouble val;
struct lconv *locale_data;
const char *end = NULL; /* Silence gcc */
int strtod_errno;
+ g_return_val_if_fail (nptr != NULL, 0);
+
+#ifdef HAVE_STRTOD_L
+ errno = 0;
+
+ return strtod_l (nptr, endptr, get_C_locale ());
+#else
+
fail_pos = NULL;
locale_data = localeconv ();