mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Need to include xlocale.h on Darwin for strtod_l
This fixes the build of gstrfuncs.c on Darwin.
This commit is contained in:
parent
fb95c20c96
commit
f218353e04
@ -913,6 +913,8 @@ AC_CHECK_HEADERS([sys/mount.h sys/sysctl.h], [], [],
|
||||
#endif
|
||||
])
|
||||
|
||||
AC_CHECK_HEADERS([xlocale.h])
|
||||
|
||||
# check for structure fields
|
||||
AC_CHECK_MEMBERS([struct stat.st_mtimensec, struct stat.st_mtim.tv_nsec, struct stat.st_atimensec, struct stat.st_atim.tv_nsec, struct stat.st_ctimensec, struct stat.st_ctim.tv_nsec])
|
||||
AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct statfs.f_fstypename, struct statfs.f_bavail],,, [#include <sys/types.h>
|
||||
|
@ -39,6 +39,11 @@
|
||||
#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>
|
||||
#endif
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user