1 |
#ifndef _SUPPORT_LIBC_H
|
2 |
#define _SUPPORT_LIBC_H 1
|
3 |
|
4 |
|
5 |
void *popen(const char *command, const char *type);
|
6 |
|
7 |
int pclose(void *stream);
|
8 |
|
9 |
char* getenv (const char*);
|
10 |
|
11 |
int setenv(const char *name, const char *value, int overwrite);
|
12 |
|
13 |
void raise(int signal);
|
14 |
|
15 |
char * setlocale ( int category, const char * locale );
|
16 |
|
17 |
struct lconv *localeconv(void);
|
18 |
|
19 |
int signal(int signum, void *handler);
|
20 |
|
21 |
#ifdef _MSC_VER
|
22 |
|
23 |
#define GetWindowLongPtr GetWindowLong
|
24 |
#define SetWindowLongPtr SetWindowLong
|
25 |
|
26 |
#define DWLP_MSGRESULT 0
|
27 |
#define DWLP_DLGPROC DWLP_MSGRESULT + sizeof(LRESULT)
|
28 |
#define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)
|
29 |
|
30 |
struct tm *localtime (const time_t *t);
|
31 |
|
32 |
size_t strftime (char *s, size_t maxsize, const char *format, const struct tm *tp);
|
33 |
|
34 |
#define mkdir _mkdir
|
35 |
#define open _open
|
36 |
#define close _close
|
37 |
#define read _read
|
38 |
#define write _write
|
39 |
#define lseek _lseek
|
40 |
#define vsnprintf _vsnprintf
|
41 |
|
42 |
#else
|
43 |
|
44 |
#ifndef _GNU_SOURCE
|
45 |
# define _GNU_SOURCE 1
|
46 |
#endif
|
47 |
|
48 |
#endif
|
49 |
|
50 |
|
51 |
#endif
|