]> git.lyx.org Git - lyx.git/blob - src/os2_defines.h
whichFont down to 5.3%
[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-2001 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 #if defined (__cplusplus)
17 #include <cctype>
18 #include <cstdlib>
19
20 extern "C"
21 inline int readlink(const char *, char *, size_t) {return -1;}
22
23 #else
24 #include <ctype.h>
25 #include <stdlib.h>
26 #define readlink(s, t, l) (-1)
27 #endif
28 #include <process.h>
29 #include <unistd.h>
30 #include <X11/Xlocale.h>
31 /* #include <malloc.h> */
32 #define lstat stat
33 #define S_ISLNK(x) false
34 #define S_ISBLK(x) false
35 /*#define mkfifo(p, m) (0) *//* LyXserver is temporary disabled. */
36 #define chdir _chdir2
37 #define strcasecmp stricmp
38 #if defined (__cplusplus)
39 extern "C" {
40 #endif
41 const char* __XOS2RedirRoot(const char* pathname);
42 #if defined (__cplusplus)
43 }
44 #endif
45 #undef LYX_DIR
46 #define LYX_DIR __XOS2RedirRoot("/XFree86/lib/X11/lyx")
47 #undef LOCALEDIR
48 #define LOCALEDIR __XOS2RedirRoot("/XFree86/lib/X11/locale")
49 #undef TOP_SRCDIR
50 #define TOP_SRCDIR ".."
51 /* I have the slightest idea what I am doing here... */
52 #define bindtextdomain bindtextdomain__
53 #define textdomain textdomain__
54
55 #endif /* _OS2_DEFINES_H */