=================================================================== RCS file: /cvs/mandoc/test-strptime.c,v retrieving revision 1.2 retrieving revision 1.4 diff -u -p -r1.2 -r1.4 --- mandoc/test-strptime.c 2014/01/04 01:11:00 1.2 +++ mandoc/test-strptime.c 2018/08/15 02:15:52 1.4 @@ -1,7 +1,3 @@ -#if defined(__linux__) || defined(__MINT__) -# define _GNU_SOURCE /* strptime() */ -#endif - #include int @@ -9,6 +5,6 @@ main(void) { struct tm tm; const char input[] = "2014-01-04"; - return( ! (input+10 == strptime(input, "%Y-%m-%d", &tm) && - 114 == tm.tm_year && 0 == tm.tm_mon && 4 == tm.tm_mday)); + return ! (strptime(input, "%Y-%m-%d", &tm) == input + 10 && + tm.tm_year == 114 && tm.tm_mon == 0 && tm.tm_mday == 4); }