From 50a8c14d2acb20822baff451b35476d717ffc5b4 Mon Sep 17 00:00:00 2001 From: Wiimm Date: Wed, 30 Sep 2020 15:43:02 +0200 Subject: SZS v2.20a.beta2: Test Mac build --- project/src/wszst.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'project/src/wszst.c') diff --git a/project/src/wszst.c b/project/src/wszst.c index 7ca33f1..15100f2 100644 --- a/project/src/wszst.c +++ b/project/src/wszst.c @@ -177,28 +177,7 @@ static void list_compressions_exit() static void print_version_section ( bool print_sect_header ) { - if (print_sect_header) - fputs("[version]\n",stdout); - - const u32 base = 0x04030201; - const u8 * e = (u8*)&base; - const u32 endian = be32(e); - - printf( "prog=" WSZST_SHORT "\n" - "name=" WSZST_LONG "\n" - "version=" VERSION "\n" - "beta=%d\n" - "revision=" REVISION "\n" - "system=" SYSTEM "\n" - "endian=%u%u%u%u %s\n" - "author=" AUTHOR "\n" - "date=" DATE "\n" - "url=" URI_HOME WSZST_SHORT "\n" - "\n" - , BETA_VERSION - , e[0], e[1], e[2], e[3] - , endian == 0x01020304 ? "little" - : endian == 0x04030201 ? "big" : "mixed" ); + cmd_version_section(print_sect_header,WSZST_SHORT,WSZST_LONG); } /////////////////////////////////////////////////////////////////////////////// @@ -1806,7 +1785,7 @@ static enumError cmd_sha1() { if (long_count>1) { - #if USE_NEW_FILEATTRIB + #if HAVE_FILEATTRIB_NSEC struct tm * tm = localtime(&szs.fatt.mtime.tv_sec); #else struct tm * tm = localtime(&szs.fatt.mtime); -- cgit v1.3.1