-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathevhtp-config.h.win32
82 lines (68 loc) · 2.15 KB
/
evhtp-config.h.win32
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef __EVHTP_CONFIG_H__
#define __EVHTP_CONFIG_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef EVHTP_EXPORT
# if (defined __GNUC__ && __GNUC__ >= 4) || defined __INTEL_COMPILER || defined __clang__
# define EVHTP_EXPORT __attribute__ ((visibility("default")))
# else
# define EVHTP_EXPORT
# endif
#endif
#ifdef WIN32
# define NO_SYS_UN 1
# define NO_STRNDUP 1
# ifdef _MSC_VER
# define inline __inline
# define ssize_t int
# define strcasecmp _stricmp
# define strncasecmp _strnicmp
# if _MSC_VER <= 1800 /* VC++ 2015 have C99 snprintf */
# define snprintf evutil_snprintf
# endif
# endif
#endif
#if defined(_MSC_VER) && _MSC_VER >= 1500 // MSVC 2008
# define DEPRECATED(message) __declspec(deprecated(message))
#elif defined(__clang__) && defined(__has_feature)
# if __has_feature(attribute_deprecated_with_message)
# define DEPRECATED(message) __attribute__ ((deprecated(message)))
# endif
# elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
# define DEPRECATED(message) __attribute__ ((deprecated(message)))
# elif defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
# define DEPRECATED(message) __attribute__((__deprecated__))
# else
# define DEPRECATED(message)
#endif
#define EVHTP_SYS_ARCH 64
#define EVHTP_DISABLE_REGEX
#define EVHTP_DISABLE_SSL
#define EVHTP_DISABLE_EVTHR
/* #undef EVHTP_DISABLE_EVTHR */
/* #undef EVHTP_DISABLE_REGEX */
/* #undef EVHTP_DISABLE_SSL */
/* #undef EVHTP_DISABLE_EVTHR */
/* #undef EVHTP_USE_TCMALLOC */
/* #undef EVHTP_USE_JEMALLOC */
/* #undef EVHTP_USE_TCMALLOC */
#ifdef EVHTP_USE_TCMALLOC
#include <google/tcmalloc.h>
#define malloc(size) tc_malloc(size)
#define calloc(count, size) tc_calloc(count, size)
#define realloc(ptr, size) tc_realloc(ptr, size)
#define free(ptr) tc_free(ptr)
#endif
#ifdef EVHTP_USE_JEMALLOC
#define JEMALLOC_NO_DEMANGLE
#include <jemalloc/jemalloc.h>
#define malloc(size) je_malloc(size)
#define calloc(count, size) je_calloc(count, size)
#define realloc(ptr, size) je_realloc(ptr, size)
#define free(ptr) je_free(ptr)
#endif
#ifdef __cplusplus
}
#endif
#endif