config.h.in
598 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include <string>
#cmakedefine USE_WINSOCK
#ifdef USE_WINSOCK
#include <ws2tcpip.h>
#include <windows.h>
#ifdef __MINGW32__
#include <basetsd.h>
#else
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifdef USE_POSIX
#include <mingw.thread.h>
#endif
#else // POSIX
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#include "arch.h"
static std::string ARCH_MODEL = "@CMAKE_LIBRARY_ARCHITECTURE@";
#endif