summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-03-06 13:27:41 -0700
committerKarl Williamson <khw@cpan.org>2015-03-12 19:45:15 -0600
commit22bc8aa4322ef10da30c6535091a327b3b904c34 (patch)
treec799b29b83f217ce8eb090e68a2222995574f4fa /perl.h
parenteec978e5f1327dfd348e7205479fb6cb7a6abd3d (diff)
downloadperl-22bc8aa4322ef10da30c6535091a327b3b904c34.tar.gz
perl.h: Only #define item once
This definition was duplicated in both branches of an #if #else #endif It's better to do it once, outside the #if.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl.h b/perl.h
index b6b232fb1d..7313de0c5f 100644
--- a/perl.h
+++ b/perl.h
@@ -5954,8 +5954,6 @@ typedef struct am_table_short AMTS;
#define RESTORE_NUMERIC_STANDARD() \
if (_was_standard) SET_NUMERIC_STANDARD();
-#define Atof my_atof
-
#else /* !USE_LOCALE_NUMERIC */
#define SET_NUMERIC_STANDARD() /**/
@@ -5973,10 +5971,10 @@ typedef struct am_table_short AMTS;
#define LOCK_NUMERIC_STANDARD()
#define UNLOCK_NUMERIC_STANDARD()
-#define Atof my_atof
-
#endif /* !USE_LOCALE_NUMERIC */
+#define Atof my_atof
+
#ifdef USE_QUADMATH
# define Perl_strtod(s, e) strtoflt128(s, e)
#elif defined(HAS_LONG_DOUBLE) && defined(USE_LONG_DOUBLE)