]> git.lyx.org Git - lyx.git/blob - src/support/os2_defines.h
make "make distcheck" work
[lyx.git] / src / support / os2_defines.h
1 /* -*- C++ -*- */
2 /**
3  * \file os2_defines.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * Prototypes and definitions needed for OS/2.
8  */
9
10 #ifndef OS2_DEFINES_H
11 #define OS2_DEFINES_H
12
13 #if defined (__cplusplus)
14 #include <cctype>
15 #include <cstdlib>
16
17 extern "C"
18 inline int readlink(const char *, char *, size_t) {return -1;}
19
20 #else
21 #include <ctype.h>
22 #include <stdlib.h>
23 #define readlink(s, t, l) (-1)
24 #endif
25 #include <process.h>
26 #ifdef HAVE_UNISTD_H
27 # include <unistd.h>
28 #endif
29 #include <X11/Xlocale.h>
30 /* #include <malloc.h> */
31 #define lstat stat
32 #define S_ISLNK(x) false
33 #define S_ISBLK(x) false
34 /*#define mkfifo(p, m) (0) *//* LyXserver is temporary disabled. */
35 #define chdir _chdir2
36 #define strcasecmp stricmp
37 #if defined (__cplusplus)
38 extern "C" {
39 #endif
40 const char* __XOS2RedirRoot(const char* pathname);
41 #if defined (__cplusplus)
42 }
43 #endif
44 #undef LYX_DIR
45 #define LYX_DIR __XOS2RedirRoot("/XFree86/lib/X11/lyx")
46 #undef LOCALEDIR
47 #define LOCALEDIR __XOS2RedirRoot("/XFree86/lib/X11/locale")
48 #undef TOP_SRCDIR
49 #define TOP_SRCDIR ".."
50 /* I have the slightest idea what I am doing here... */
51 #define bindtextdomain bindtextdomain__
52 #define textdomain textdomain__
53
54 #endif /* _OS2_DEFINES_H */