@kugel- commented on this pull request.
- ['memcpy', '#include <string.h>'],
+ ['mkstemp', '#include <stdlib.h>'], + ['regcomp', '#include <regex.h>'], + ['socket', '#include <sys/socket.h>'], + ['strerror', '#include <string.h>'], + ['strstr', '#include <string.h>'], + ['wcrtomb', '#include <wchar.h>'], + ['wcscoll', '#include <wchar.h>'], +] + +foreach h : check_headers + define = 'HAVE_' + h.underscorify().to_upper() + if cc.has_header(h) + cdata.set(define, 1) + else + cdata.set(define, false)
I tested on Windows at last. I'll check.