anope

- supernets anope source code & configuration
git clone git://git.acid.vegas/anope.git
Log | Files | Refs | Archive | README

services.h (1183B)

      1 /*
      2  *
      3  * (C) 2003-2022 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 #ifndef SERVICES_H
     13 #define SERVICES_H
     14 
     15 #include "sysconf.h"
     16 
     17 #define BUFSIZE 1024
     18 
     19 #include <cstdio>
     20 #include <cstdlib>
     21 #include <cstdarg>
     22 #include <stdexcept>
     23 
     24 #include <string.h>
     25 #if HAVE_STRINGS_H
     26 # include <strings.h>
     27 #endif
     28 
     29 #ifndef _WIN32
     30 #include <unistd.h>
     31 #endif
     32 
     33 /* Pull in the various bits of STL */
     34 #include <iostream>
     35 #include <fstream>
     36 #include <sstream>
     37 #include <map>
     38 #include <exception>
     39 #include <list>
     40 #include <vector>
     41 #include <deque>
     42 #include <bitset>
     43 #include <set>
     44 #include <algorithm>
     45 #include <iterator>
     46 
     47 #include "defs.h"
     48 
     49 #define _(x) x
     50 
     51 #if defined __GXX_EXPERIMENTAL_CXX0X__ || __cplusplus >= 201103L
     52 # define anope_override override
     53 # define anope_final final
     54 #else
     55 # define anope_override
     56 # define anope_final
     57 #endif
     58 
     59 #ifndef _WIN32
     60 # define DllExport
     61 # define CoreExport
     62 # define MARK_DEPRECATED __attribute((deprecated))
     63 # define anope_close close
     64 #else
     65 # include "anope_windows.h"
     66 #endif
     67 
     68 #endif // SERVICES_H