services.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * (C) 2003-2013 Anope Team
00004  * Contact us at team@anope.org
00005  *
00006  * Please read COPYING and README for further details.
00007  *
00008  * Based on the original code of Epona by Lara.
00009  * Based on the original code of Services by Andy Church.
00010  *
00011  */
00012 
00013 #ifndef SERVICES_H
00014 #define SERVICES_H
00015 
00016 #include "sysconf.h"
00017 
00018 #define BUFSIZE 1024
00019 
00020 #include <cstdio>
00021 #include <cstdlib>
00022 #include <cstdarg>
00023 #include <stdexcept>
00024 
00025 #include <string.h>
00026 #if HAVE_STRINGS_H
00027 # include <strings.h>
00028 #endif
00029 
00030 #ifndef _WIN32
00031 #include <unistd.h>
00032 #endif
00033 
00034 /* Pull in the various bits of STL */
00035 #include <iostream>
00036 #include <fstream>
00037 #include <sstream>
00038 #include <map>
00039 #include <exception>
00040 #include <list>
00041 #include <vector>
00042 #include <deque>
00043 #include <bitset>
00044 #include <set>
00045 #include <algorithm>
00046 
00047 #include "defs.h"
00048 
00049 #define _(x) x
00050 
00051 #ifdef __GXX_EXPERIMENTAL_CXX0X__
00052 # define anope_override override
00053 # define anope_final final
00054 #else
00055 # define anope_override
00056 # define anope_final
00057 #endif
00058 
00059 #ifndef _WIN32
00060 # define DllExport
00061 # define CoreExport
00062 # define MARK_DEPRECATED __attribute((deprecated))
00063 # define anope_close close
00064 #else
00065 # include "anope_windows.h"
00066 #endif
00067 
00068 #endif // SERVICES_H