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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
// Precompiled headers file
#ifndef PRECOMPILED_HEADERS_H
#define PRECOMPILED_HEADERS_H
#include "config.h"
// Windows all encompasing includes
#if defined(_WIN32)
#define STRICT
#include <windows.h>
#include <tchar.h>
#include "win32/types.h"
#endif
// "sys" includes
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#if HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
// Other system includes
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
// Unix includes
#if HAVE_FCNTL_H
#include <fcntl.h>
#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#if HAVE_UTIME_H
#include <utime.h>
#endif
#if HAVE_DIRENT_H
#include <dirent.h>
#endif
// C++ generic includes
#include <memory>
#include <iostream>
#include <fstream>
#include <string>
#include <set>
#include <map>
// C generic includes
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#if HAVE_STRING_H
#include <string.h>
#endif
#if 0
#if HAVE_STRINGS_H
#include <strings.h>
#endif
#endif
#include <stdarg.h>
#include <assert.h>
// OpenSSL includes
#include <openssl/rand.h>
#include <openssl/bio.h>
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/aes.h>
// Argtable includes
#include <argtable2.h>
#include "autoarray.h"
#include "rcserror.h"
#if defined(__unix__) || defined(__APPLE__)
#include "autofd.h"
#include "autommap.h"
#elif defined(_WIN32)
#include "win32/autofd.h"
#include "win32/autommap.h"
#else
#error Unsupported platform
#endif
#endif // PRECOMPILED_HEADERS_H
|