Don't link with libgnutls-openssl, which is now GPLv3+.
[elinks.git] / src / osdep / win32 / win32.h
bloba2f301014a35e33059be56f6e5f123698cf3fc63
2 #ifndef EL__OSDEP_WIN32_WIN32_H
3 #define EL__OSDEP_WIN32_WIN32_H
5 #ifdef CONFIG_OS_WIN32
7 #undef CHAR_DIR_SEP
8 #define CHAR_DIR_SEP '\\'
9 #undef STRING_DIR_SEP
10 #define STRING_DIR_SEP "\\"
12 struct terminal;
14 void open_in_new_win32(struct terminal *term, unsigned char *exe_name,
15 unsigned char *param);
16 unsigned char *user_appdata_directory(void);
17 #define user_appdata_directory user_appdata_directory
20 /* Stub functions: */
22 int mkstemp (char *template);
23 int gettimeofday (struct timeval *tv, void *tz);
25 /* fake termios for Win32 (excluding CygWin) */
27 #if !defined(__CYGWIN__)
29 #define VMIN 6
30 #define VTIME 11
31 #define TCSANOW 3
32 #define O_NOCTTY 0
34 #define ECHO 0x00000100
35 #define ICANON 0x00001000
36 #define IEXTEN 0x00002000
37 #define ECHONL 0x00000800
39 #define CSIZE 0x00000C00
40 #define OPOST 0x00000100
41 #define BRKINT 0x00000100
42 #define ICRNL 0x00000200
43 #define IGNBRK 0x00000400
44 #define IGNCR 0x00000800
45 #define INLCR 0x00002000
46 #define ISIG 0x00004000
47 #define ISTRIP 0x00008000
49 #define IXOFF 0x00010000
50 #define IXON 0x00020000
51 #define PARMRK 0x00040000
52 #define PARENB 0x00004000
53 #define CS8 0x00000C00
55 #define NCCS 12
57 struct termios {
58 unsigned c_cflag;
59 unsigned c_lflag;
60 unsigned c_iflag;
61 unsigned c_oflag;
62 unsigned c_cc [NCCS];
65 int tcgetattr(int fd, struct termios *termios_p);
66 int tcsetattr(int fd, int optional_actions, const struct termios *termios_p);
67 #endif /* __CYGWIN__ */
69 #endif /* CONFIG_OS_WIN32 */
70 #endif