forked from membase/ep-engine
/
config_static.h
67 lines (55 loc) · 1.19 KB
/
config_static.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* Consider this file as an extension to config.h, just that it contains
* static text. The intention is to reduce the number of #ifdefs in the rest
* of the source files without having to put all of them in AH_BOTTOM
* in configure.ac.
*/
#ifndef CONFIG_STATIC_H
#define CONFIG_STATIC_H 1
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#if ((defined (__SUNPRO_C) || defined(__SUNPRO_CC)) || defined __GNUC__)
#define EXPORT_FUNCTION __attribute__ ((visibility("default")))
#else
#define EXPORT_FUNCTION
#endif
#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifndef HAVE_GETHRTIME
typedef uint64_t hrtime_t;
#ifdef __cplusplus
extern "C" {
#endif
extern hrtime_t gethrtime(void);
#ifdef __cplusplus
}
#endif
#endif
#ifndef SQLITE_HAS_CODEC
#define SQLITE_HAS_CODEC 0
#endif
#ifdef HAVE_POLL_H
#include <poll.h>
#endif
#ifdef linux
#undef ntohs
#undef ntohl
#undef htons
#undef htonl
#endif
#ifndef HAVE_HTONLL
#ifdef __cplusplus
extern "C" {
#endif
extern uint64_t htonll(uint64_t);
extern uint64_t ntohll(uint64_t);
#ifdef __cplusplus
}
#endif
#endif
#endif