Thu, 03 May 2018 21:21:03 -0500
meson: Remove HAVE_STRFTIME_Z_FORMAT check now that it's unused
Now that we're using g_date_time_format() which includes the %z format
support, we no longer need the HAVE_STRFTIME_Z_FORMAT check. This
patch removes it.
| meson.build | file | annotate | diff | comparison | revisions |
--- a/meson.build Wed Apr 25 15:40:00 2018 -0500 +++ b/meson.build Thu May 03 21:21:03 2018 -0500 @@ -246,31 +246,6 @@ # of the C library math = compiler.find_library('m') -code = ''' -#include <time.h> -#include <stdio.h> - -int main() -{ - char buf[64]; - time_t t = time(NULL); - - if (strftime(buf, sizeof(buf), "%z", localtime(&t)) != 5) - return 1; - - fprintf(stderr, "strftime(\"%%z\") yields: \"%s\"\n", buf); - - return !((buf[0] == '-' || buf[0] == '+') && - (buf[1] >= '0' && buf[1] <= '9') && - (buf[2] >= '0' && buf[2] <= '9') && - (buf[3] >= '0' && buf[3] <= '9') && - (buf[4] >= '0' && buf[4] <= '9') - ); -} -''' -result = compiler.run(code, name : 'the %z format string in strftime()') -conf.set('HAVE_STRFTIME_Z_FORMAT', result.returncode() == 0) - # before gettexting, in case iconv matters IOKIT = [] if host_machine.system() == 'darwin'