Switch to unified view

a/src/utils/smallut.cpp b/src/utils/smallut.cpp
...
...
20
20
21
#include <stdio.h>
21
#include <stdio.h>
22
#include <stdlib.h>
22
#include <stdlib.h>
23
#include <time.h>
23
#include <time.h>
24
#include <ctype.h>
24
#include <ctype.h>
25
#include <unistd.h>
26
#include <errno.h>
25
#include <errno.h>
27
#include <time.h>
26
#include <time.h>
28
#include <sys/types.h>
29
#include <sys/stat.h>
30
#include <string.h>
27
#include <string.h>
31
#include <math.h>
28
#include <math.h>
32
29
33
#include <string>
30
#include <string>
34
#include <iostream>
31
#include <iostream>
...
...
1082
    // Also couldn't find an easy way to disable the gnu version without
1079
    // Also couldn't find an easy way to disable the gnu version without
1083
    // changing the cxxflags globally, so forget it. Recent gnu lib versions
1080
    // changing the cxxflags globally, so forget it. Recent gnu lib versions
1084
    // normally default to the posix version.
1081
    // normally default to the posix version.
1085
    // At worse we get no message at all here.
1082
    // At worse we get no message at all here.
1086
    errbuf[0] = 0;
1083
    errbuf[0] = 0;
1084
    // We don't use ret, it's there to silence a cc warning
1087
    strerror_r(_errno, errbuf, ERRBUFSZ);
1085
    char *ret = (char *)strerror_r(_errno, errbuf, ERRBUFSZ);
1088
    reason->append(errbuf);
1086
    reason->append(errbuf);
1089
#endif
1087
#endif
1090
}
1088
}
1091
1089
1092
void HighlightData::toString(std::string& out)
1090
void HighlightData::toString(std::string& out)