Switch to unified view

a/utils/smallut.cpp b/utils/smallut.cpp
...
...
15
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16
 *   02110-1301 USA
16
 *   02110-1301 USA
17
 */
17
 */
18
#include <stdio.h>
18
#include <stdio.h>
19
#include <stdlib.h>
19
#include <stdlib.h>
20
#define _POSIX_THREAD_SAFE_FUNCTIONS
21
#ifdef _WIN32
20
#ifdef _WIN32
22
// needed for localtime_r under mingw?
21
// needed for localtime_r under mingw?
23
#define _POSIX_THREAD_SAFE_FUNCTIONS
22
#define _POSIX_THREAD_SAFE_FUNCTIONS
24
#endif
23
#endif
25
#include <time.h>
24
#include <time.h>
26
#include <ctype.h>
25
#include <ctype.h>
27
#include <errno.h>
26
#include <errno.h>
28
#include <time.h>
29
#include <string.h>
27
#include <string.h>
30
#include <math.h>
28
#include <math.h>
31
29
32
// Older compilers don't support stdc++ regex, but Windows does not
30
// Older compilers don't support stdc++ regex, but Windows does not
33
// have the Linux one. Have a simple class to solve the simple cases.
31
// have the Linux one. Have a simple class to solve the simple cases.