mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
1f57e72212
SpiderMonkey was updated to mozjs24. If you want to build elinks with ecmascript support, you must compile using g++ with -fpermissive . There is a lot of warnings. There are some memleaks in ecmascript code, especially related to JSAutoCompartment. I don't know yet, where and how to free it. Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
52 lines
864 B
C
52 lines
864 B
C
|
|
#ifndef EL__OSDEP_OS2_SYSINFO_H
|
|
#define EL__OSDEP_OS2_SYSINFO_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef CONFIG_OS_OS2
|
|
|
|
#define SYSTEM_NAME "OS/2"
|
|
#define SYSTEM_STR "os2"
|
|
#define DEFAULT_SHELL "cmd.exe"
|
|
#define GETSHELL getenv("COMSPEC")
|
|
|
|
static inline int dir_sep(char x) { return x == '/' || x == '\\'; }
|
|
|
|
/*#define NO_ASYNC_LOOKUP*/
|
|
#define NO_FG_EXEC
|
|
#define DOS_FS
|
|
#define NO_FILE_SECURITY
|
|
#define NO_FORK_ON_EXIT
|
|
#ifdef HAVE_BEGINTHREAD
|
|
#define THREAD_SAFE_LOOKUP
|
|
#endif
|
|
#if defined(HAVE_MOUOPEN) && defined(CONFIG_MOUSE)
|
|
#define OS2_MOUSE
|
|
#endif
|
|
|
|
#define strcasecmp stricmp
|
|
#define strncasecmp strnicmp
|
|
#ifndef HAVE_STRCASECMP
|
|
#define HAVE_STRCASECMP
|
|
#endif
|
|
#ifndef HAVE_STRNCASECMP
|
|
#define HAVE_STRNCASECMP
|
|
#endif
|
|
|
|
#define read _read
|
|
#define write _write
|
|
#ifdef O_SIZE
|
|
#define USE_OPEN_PREALLOC
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|