summaryrefslogtreecommitdiff
path: root/uconfig.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2021-06-24 14:49:55 +1000
committerTony Cook <tony@develop-help.com>2021-08-11 14:40:22 +1000
commit68f1b6d700b9662cfdec43ceddbd086d4b59c87e (patch)
tree63621a829b468f50b903296b5259e9ebfa80ce02 /uconfig.h
parent7e12ee61fac08d210b4f192160a1de75771f27c9 (diff)
downloadperl-68f1b6d700b9662cfdec43ceddbd086d4b59c87e.tar.gz
only #include <xlocale.h> when it is actually needed
This header was originally only needed for builds on darwin and FreeBSD, but was being included whenever it was detected. This has caused problems when what was an internal header was removed (from glibc) and in general wasn't needed anyway. On FreeBSD only localeconv_l() requires xlocale.h, so we test specifically for that.
Diffstat (limited to 'uconfig.h')
-rw-r--r--uconfig.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/uconfig.h b/uconfig.h
index 40ca1fd42c..49f836bc25 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -3107,8 +3107,12 @@
* available to return the name of the locale for a category mask.
*/
/* I_XLOCALE:
- * This symbol, if defined, indicates to the C program that it should
- * include <xlocale.h> to get uselocale() and its friends.
+ * This symbol, if defined, indicates to the C program that the
+ * xlocale.h header is available. See also NEED_XLOCALE_H.
+ */
+/* NEED_XLOCALE_H:
+ * This symbol, if defined, indicates that the C program should
+ * include <xlocale.h> to get newlocale() and its friends.
*/
/*#define HAS_NEWLOCALE / **/
/*#define HAS_FREELOCALE / **/
@@ -3116,6 +3120,7 @@
/*#define HAS_DUPLOCALE / **/
/*#define HAS_QUERYLOCALE / **/
/*#define I_XLOCALE / **/
+/*#define NEED_XLOCALE_H / **/
/* HAS_NEXTAFTER:
* This symbol, if defined, indicates that the nextafter routine is
@@ -5313,6 +5318,6 @@
#endif
/* Generated from:
- * 55a531381747550c11c2c61b9a9da2dacde4df465b874df55a9c923e495deb3a config_h.SH
- * 2fece1e405c60ae089fe55acaa42471b6fba78b7ab4cefc6d5e18a94b72fc2c4 uconfig.sh
+ * c0ae90ad8256740b1a7872cebe079e964a7a9a5c8128038a60de0ab610d9e9fe config_h.SH
+ * 24570f2ff38b22b436d34127ff85a3f3a075a4dea1359c56f16196bdbe376b1c uconfig.sh
* ex: set ro: */