1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 17:06:37 +02:00
Files
anope/include/services.h
T
Sadie Powell db6b2225b1 Use GNU visibility attributes when on non-Windows.
This reduces binary sizes by several megabytes on my system.
2022-01-04 00:39:05 +00:00

62 lines
1.0 KiB
C++

/*
*
* (C) 2003-2021 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*/
#ifndef SERVICES_H
#define SERVICES_H
#include "sysconf.h"
#define BUFSIZE 1024
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <stdexcept>
#include <string.h>
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#ifndef _WIN32
#include <unistd.h>
#endif
/* Pull in the various bits of STL */
#include <cstdint>
#include <cstddef>
#include <iostream>
#include <fstream>
#include <sstream>
#include <map>
#include <exception>
#include <list>
#include <vector>
#include <deque>
#include <bitset>
#include <set>
#include <algorithm>
#include <iterator>
#include "defs.h"
#define _(x) x
#ifndef _WIN32
# define DllExport __attribute__ ((visibility ("default")))
# define CoreExport __attribute__ ((visibility ("default")))
# define anope_close close
#else
# include "anope_windows.h"
#endif
#endif // SERVICES_H