Anope IRC Services  Version 2.0
services.h
Go to the documentation of this file.
1 /*
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  *
11  */
12 
13 #ifndef SERVICES_H
14 #define SERVICES_H
15 
16 #include "sysconf.h"
17 
18 #define BUFSIZE 1024
19 
20 #include <cstdio>
21 #include <cstdlib>
22 #include <cstdarg>
23 #include <stdexcept>
24 
25 #include <string.h>
26 #if HAVE_STRINGS_H
27 # include <strings.h>
28 #endif
29 
30 #ifndef _WIN32
31 #include <unistd.h>
32 #endif
33 
34 /* Pull in the various bits of STL */
35 #include <iostream>
36 #include <fstream>
37 #include <sstream>
38 #include <map>
39 #include <exception>
40 #include <list>
41 #include <vector>
42 #include <deque>
43 #include <bitset>
44 #include <set>
45 #include <algorithm>
46 #include <iterator>
47 
48 #include "defs.h"
49 
50 #define _(x) x
51 
52 #ifdef __GXX_EXPERIMENTAL_CXX0X__
53 # define anope_override override
54 # define anope_final final
55 #else
56 # define anope_override
57 # define anope_final
58 #endif
59 
60 #ifndef _WIN32
61 # define DllExport
62 # define CoreExport
63 # define MARK_DEPRECATED __attribute((deprecated))
64 # define anope_close close
65 #else
66 # include "anope_windows.h"
67 #endif
68 
69 #endif // SERVICES_H