iconv: Bail out of the loop when an illegal sequence of bytes occurs.
[elinks/elinks-j605.git] / src / osdep / os2 / sysinfo.h
blob0c195c6e2f518503cf8312cd37fe122e9e661d97
2 #ifndef EL__OSDEP_OS2_SYSINFO_H
3 #define EL__OSDEP_OS2_SYSINFO_H
5 #ifdef CONFIG_OS_OS2
7 #define SYSTEM_NAME "OS/2"
8 #define SYSTEM_STR "os2"
9 #define DEFAULT_SHELL "cmd.exe"
10 #define GETSHELL getenv("COMSPEC")
12 static inline int dir_sep(char x) { return x == '/' || x == '\\'; }
14 /*#define NO_ASYNC_LOOKUP*/
15 #define NO_FG_EXEC
16 #define DOS_FS
17 #define NO_FILE_SECURITY
18 #define NO_FORK_ON_EXIT
19 #ifdef HAVE_BEGINTHREAD
20 #define THREAD_SAFE_LOOKUP
21 #endif
22 #if defined(HAVE_MOUOPEN) && defined(CONFIG_MOUSE)
23 #define OS2_MOUSE
24 #endif
26 #define strcasecmp stricmp
27 #define strncasecmp strnicmp
28 #ifndef HAVE_STRCASECMP
29 #define HAVE_STRCASECMP
30 #endif
31 #ifndef HAVE_STRNCASECMP
32 #define HAVE_STRNCASECMP
33 #endif
35 #define read _read
36 #define write _write
37 #ifdef O_SIZE
38 #define USE_OPEN_PREALLOC
39 #endif
41 #endif
43 #endif