mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
Merge branch 'fix-clang-cl-strcasecmp' into 'master'
meson: fix str[n]casecmp detection on clang-cl Closes #2337 See merge request GNOME/glib!1973
This commit is contained in:
commit
1d0d9b92f6
@ -662,7 +662,7 @@ elif cc.has_function('_snprintf') or cc.has_header_symbol('stdio.h', '_snprintf'
|
||||
glib_conf_prefix = glib_conf_prefix + '#define HAVE_SNPRINTF ' + hack_define
|
||||
endif
|
||||
|
||||
if cc.has_function('strcasecmp')
|
||||
if cc.has_function('strcasecmp', prefix: '#include <strings.h>')
|
||||
glib_conf.set('HAVE_STRCASECMP', 1)
|
||||
glib_conf_prefix = glib_conf_prefix + '#define HAVE_STRCASECMP 1\n'
|
||||
elif cc.has_function('_stricmp')
|
||||
@ -671,7 +671,7 @@ elif cc.has_function('_stricmp')
|
||||
glib_conf_prefix = glib_conf_prefix + '#define HAVE_STRCASECMP ' + hack_define
|
||||
endif
|
||||
|
||||
if cc.has_function('strncasecmp')
|
||||
if cc.has_function('strncasecmp', prefix: '#include <strings.h>')
|
||||
glib_conf.set('HAVE_STRNCASECMP', 1)
|
||||
glib_conf_prefix = glib_conf_prefix + '#define HAVE_STRNCASECMP 1\n'
|
||||
elif cc.has_function('_strnicmp')
|
||||
|
Loading…
Reference in New Issue
Block a user