build: detect whether there is strchrnul
This should help compiling on macosx
This commit is contained in:
parent
6f8997d194
commit
02f4173387
|
@ -78,6 +78,10 @@ if cc.has_function('mkstemps')
|
|||
config_data.set('HAVE_MKSTEMPS', 1)
|
||||
endif
|
||||
|
||||
if cc.has_function('strchrnul')
|
||||
config_data.set('HAVE_STRCHRNUL', 1)
|
||||
endif
|
||||
|
||||
url_head_code = '''#include <Ecore_Con.h>
|
||||
int main(void) { ecore_con_url_head(NULL); return 0; }
|
||||
'''
|
||||
|
|
|
@ -3418,7 +3418,7 @@ _eina_unicode_to_hex(Eina_Unicode u)
|
|||
return -1;
|
||||
}
|
||||
|
||||
#if defined(__OpenBSD__)
|
||||
#if !defined(HAVE_STRCHRNUL)
|
||||
char *
|
||||
strchrnul(const char *s, int c)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue