-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.h
executable file
·184 lines (162 loc) · 3.67 KB
/
base.h
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
#ifndef base_h
#define base_h
/////////////////////////////////////////////////
// Environment defines
#if defined (_WIN32)
#define GLib_WIN
#define GLib_WIN32
#elif defined (__WIN64)
#define GLib_WIN
#define GLib_WIN64
#elif defined(__linux__)
#define GLib_UNIX
#define GLib_LINUX __linux__
#elif defined(__sun__)
#define GLib_UNIX
#define GLib_SOLARIS __sun__
// !bn: defined in ctype_iso.h but apears as a parameter in GLib
#undef _C
#elif defined(__FreeBSD__)
#define GLib_UNIX
#define GLib_BSD __FreeBSD__
#elif defined(__CYGWIN__)
#define GLib_UNIX
#define GLib_CYGWIN
#elif (defined(__APPLE__) && defined(__MACH__))
#define GLib_UNIX
#define GLib_MACOSX
#endif
#define _CMPWARN
// compiler
#if defined (_MSC_VER)
#define GLib_MSC _MSC_VER
#endif
#if defined (__BCPLUSPLUS__)
#define GLib_BCB __BCPLUSPLUS__
#endif
#if defined (__GNUC__)
#define GLib_GCC __GNUC__
// !bn: to bo not samo dokler ne ugotovim kje so primerjave problematicne
#ifdef FLTWARN
#undef _CMPWARN
#define _CMPWARN __attribute__ ((deprecated))
#endif
#endif
// includes
#if defined (GLib_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#if !defined(_WINSOCKAPI_) && !defined(_WINSOCK2API_)
#include <winsock2.h>
#endif
#include <oleauto.h>
#include <shellapi.h>
#endif
#if defined(GLib_UNIX)
#define __STDC_LIMIT_MACROS
#include <stdint.h>
#include <stdarg.h>
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
#include <signal.h>
#include <sys/poll.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/resource.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#endif
// word size
#if __WORDSIZE == 32 || defined(GLib_WIN32) || defined(__CYGWIN32__)
#define GLib_32Bit
#elif __WORDSIZE == 64 || defined(GLib_WIN64) || defined(__CYGWIN64__)
#define GLib_64Bit
#else
#error "Undefined word size"
#endif
#if defined(GLib_UNIX)
extern int _daylight;
#ifndef _environ
#if defined(GLib_MACOSX)
#include <crt_externs.h>
#define _environ (*_NSGetEnviron())
#elif !defined(GLib_CYGWIN)
#define _environ __environ
#else
#define _environ environ
#endif
#endif
#ifndef __stdcall
#define __stdcall
#endif
#endif
#if defined(GLib_LINUX)
#include <sys/epoll.h>
#endif
#if defined(GLib_SOLARIS)
#include <ieeefp.h>
#endif
#if defined (__GLIBC__)
#define GLib_GLIBC __GLIBC__
#endif
#if defined (__USE_XOPEN2K)
#define GLib_POSIX_1j "1003.1j"
#endif
#include <ctype.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <typeinfo>
#include <stdexcept>
#ifdef GLib_CYGWIN
#define timezone _timezone
#endif
//#ifdef GLib_MACOSX
// #undef _POSIX_MONOTONIC_CLOCK
//#endif
#include "bd.h"
#include "fl.h"
#include "dt.h"
#include "ut.h"
#include "ds.h"
#include "bits.h"
#include "hash.h"
#include "xml.h"
#include "xmath.h"
#include "xmlser.h"
#include "unicode.h"
#include "unicodestring.h"
#include "tm.h"
#include "shash.h"
#include "os.h"
#include "console.h"
#include "app.h"
#include "env.h"
#include "wch.h"
#include "xdt.h"
#include "xfl.h"
#include "blobbs.h"
#include "fds.h"
#include "lx.h"
#include "macro.h"
#include "pp.h"
#include "url.h"
#include "exp.h"
#include "http.h"
#include "html.h"
#include "md5.h"
#include "ss.h"
//#include "prolog.h"
#include "zipfl.h"
void BaseTralala();
#endif