File tree 4 files changed +4
-17
lines changed
4 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 32
32
#define ultoa _ultoa
33
33
#endif /* __GNUC__ */
34
34
#define SIGNED
35
- #if defined(_MSC_VER )
36
- #if (_MSC_VER < 1900 )
37
- #define snprintf _snprintf
38
- #endif
39
- #endif /* defined(_MSC_VER) */
40
35
#else
41
36
#include <climits>
42
37
#ifndef PATH_MAX
Original file line number Diff line number Diff line change 27
27
28
28
namespace tesseract {
29
29
30
- #if (defined(_MSC_VER) && _MSC_VER < 1900) || defined(ANDROID)
30
+ #if defined(ANDROID)
31
31
static inline double log2 (double n) {
32
32
return log (n) / log (2.0 );
33
33
}
34
- #endif // _MSC_VER
34
+ #endif // ANDROID
35
35
36
36
// Number of iterations after which the correction effectively becomes unity.
37
37
const int kAdamCorrectionIterations = 200000 ;
Original file line number Diff line number Diff line change 25
25
#define TESSERACT_VIEWER_SVUTIL_H_
26
26
27
27
#ifdef _WIN32
28
- #ifndef __GNUC__
29
28
#include < windows.h>
30
29
#include " platform.h"
31
- #if defined(_MSC_VER) && _MSC_VER < 1900
32
- #define snprintf _snprintf
33
- #endif
34
- #else
35
- #include " platform.h"
36
- #include < windows.h>
37
- #endif
38
30
#else
39
31
#include < pthread.h>
40
32
#include < semaphore.h>
Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ namespace tesseract {
43
43
class LMPainPoints ;
44
44
struct FontInfo ;
45
45
46
- #if (defined(_MSC_VER) && _MSC_VER < 1900) || defined(ANDROID)
46
+ #if defined(ANDROID)
47
47
static inline double log2 (double n) {
48
48
return log (n) / log (2.0 );
49
49
}
50
- #endif // _MSC_VER
50
+ #endif // ANDROID
51
51
52
52
const float LanguageModel::kMaxAvgNgramCost = 25 .0f ;
53
53
You can’t perform that action at this time.
0 commit comments