]> git.lyx.org Git - lyx.git/blob - src/os2_defines.h
the freespacing patch from Kayvan, draw the math empty delim with onoffdash, asure...
[lyx.git] / src / os2_defines.h
1 /* -*- C++ -*- */
2 /* This file is part of
3 * ====================================================== 
4
5 *           LyX, The Document Processor
6 *        
7 *           Copyright 1995 Matthias Ettrich
8 *           Copyright 1995-2000 The LyX Team.
9 *
10 * ====================================================== 
11  A few prototypes and definitions needed for OS/2 */
12
13 #ifndef OS2_DEFINES_H
14 #define OS2_DEFINES_H
15
16 #include <cctype>
17 #include <process.h>
18 #include <cstdlib>
19 #include <unistd.h>
20 #include <X11/Xlocale.h>
21 /* #include <malloc.h> */
22 #define lstat stat
23 #define S_ISLNK(x) false
24 #define S_ISBLK(x) false
25 #define readlink(s, t, l) (strcpy(t, s), strlen(t))
26 /*#define mkfifo(p, m) (0) *//* LyXserver is temporary disabled. */
27 #define getcwd _getcwd2
28 #define chdir _chdir2
29 #define strcasecmp stricmp
30 #if defined (__cplusplus)
31 extern "C" {
32 #endif
33 const char* __XOS2RedirRoot(const char* pathname);
34 #if defined (__cplusplus)
35 }
36 #endif
37 #undef LYX_DIR
38 #define LYX_DIR __XOS2RedirRoot("/XFree86/lib/X11/lyx")
39 #undef LOCALEDIR
40 #define LOCALEDIR __XOS2RedirRoot("/XFree86/lib/X11/locale")
41 #undef TOP_SRCDIR
42 #define TOP_SRCDIR ".."
43 /* I have the slightest idea what I am doing here... */
44 #define bindtextdomain bindtextdomain__
45 #define textdomain textdomain__
46
47 #endif /* _OS2_DEFINES_H */