File tree 2 files changed +15
-23
lines changed
2 files changed +15
-23
lines changed Original file line number Diff line number Diff line change 19
19
// SVUtil contains the SVSync and SVNetwork classes, which are used for
20
20
// thread/process creation & synchronization and network connection.
21
21
22
+ // Include automatically generated configuration file if running autoconf.
23
+ #ifdef HAVE_CONFIG_H
24
+ # include " config_auto.h"
25
+ #endif
26
+
27
+ #include " svutil.h"
22
28
#include < cstdio>
29
+ #include < cstdlib>
30
+ #include < cstring>
31
+ #include < iostream>
32
+ #include < memory>
33
+ #include < string>
34
+ #include < vector>
35
+
23
36
#ifdef _WIN32
24
37
#pragma comment(lib, "Ws2_32.lib")
25
- struct addrinfo {
26
- struct sockaddr * ai_addr;
27
- int ai_addrlen;
28
- int ai_family;
29
- int ai_socktype;
30
- int ai_protocol;
31
- };
32
- #include < winsock2.h> // for fd_set, send, ...
38
+ # include < WinSock2.h> // for fd_set, send, ..
33
39
#else
34
40
#include < arpa/inet.h>
35
41
#include < netdb.h>
@@ -45,20 +51,6 @@ struct addrinfo {
45
51
#include < unistd.h>
46
52
#endif
47
53
48
- #include < cstdlib>
49
- #include < cstring>
50
- #include < iostream>
51
- #include < memory>
52
- #include < string>
53
- #include < vector>
54
-
55
- // Include automatically generated configuration file if running autoconf.
56
- #ifdef HAVE_CONFIG_H
57
- #include " config_auto.h"
58
- #endif
59
-
60
- #include " svutil.h"
61
-
62
54
SVMutex::SVMutex () {
63
55
#ifdef _WIN32
64
56
mutex_ = CreateMutex (0 , FALSE , 0 );
Original file line number Diff line number Diff line change 24
24
#define TESSERACT_VIEWER_SVUTIL_H_
25
25
26
26
#ifdef _WIN32
27
- #include " host.h" // also includes windows.h
27
+ # include " host.h" // also includes windows.h
28
28
#else
29
29
#include < pthread.h>
30
30
#include < semaphore.h>
You can’t perform that action at this time.
0 commit comments