File tree 2 files changed +2
-13
lines changed
2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 2
2
// File: svutil.cpp
3
3
// Description: ScrollView Utilities
4
4
// Author: Joern Wanke
5
- // Created: Thu Nov 29 2007
6
5
//
7
6
// (C) Copyright 2007, Google Inc.
8
7
// Licensed under the Apache License, Version 2.0 (the "License");
22
21
23
22
#include < cstdio>
24
23
#ifdef _WIN32
25
- #include < windows.h>
26
24
#pragma comment(lib, "Ws2_32.lib")
27
25
struct addrinfo {
28
26
struct sockaddr * ai_addr;
@@ -31,6 +29,7 @@ struct addrinfo {
31
29
int ai_socktype;
32
30
int ai_protocol;
33
31
};
32
+ #include < winsock2.h> // for fd_set, send, ...
34
33
#else
35
34
#include < arpa/inet.h>
36
35
#include < netdb.h>
Original file line number Diff line number Diff line change 2
2
// File: svutil.h
3
3
// Description: ScrollView Utilities
4
4
// Author: Joern Wanke
5
- // Created: Thu Nov 29 2007
6
5
//
7
6
// (C) Copyright 2007, Google Inc.
8
7
// Licensed under the Apache License, Version 2.0 (the "License");
25
24
#define TESSERACT_VIEWER_SVUTIL_H_
26
25
27
26
#ifdef _WIN32
28
- #include < windows.h>
29
- #include " platform.h"
27
+ #include " host.h" // also includes windows.h
30
28
#else
31
29
#include < pthread.h>
32
30
#include < semaphore.h>
33
31
#endif
34
32
35
33
#include < string>
36
34
37
- #ifndef MAX
38
- #define MAX (a, b ) ((a > b) ? a : b)
39
- #endif
40
-
41
- #ifndef MIN
42
- #define MIN (a, b ) ((a < b) ? a : b)
43
- #endif
44
-
45
35
// / The SVSync class provides functionality for Thread & Process Creation
46
36
class SVSync {
47
37
public:
You can’t perform that action at this time.
0 commit comments