2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ======================================================
11 A few prototypes and definitions needed for OS/2 */
16 #if defined (__cplusplus)
19 extern "C" inline int readlink(const char *, char *, size_t) {return -1;}
23 #define readlink(s, t, l) (-1)
27 #include <X11/Xlocale.h>
28 /* #include <malloc.h> */
30 #define S_ISLNK(x) false
31 #define S_ISBLK(x) false
32 /*#define mkfifo(p, m) (0) *//* LyXserver is temporary disabled. */
34 #define strcasecmp stricmp
35 #if defined (__cplusplus)
38 const char* __XOS2RedirRoot(const char* pathname);
39 #if defined (__cplusplus)
43 #define LYX_DIR __XOS2RedirRoot("/XFree86/lib/X11/lyx")
45 #define LOCALEDIR __XOS2RedirRoot("/XFree86/lib/X11/locale")
47 #define TOP_SRCDIR ".."
48 /* I have the slightest idea what I am doing here... */
49 #define bindtextdomain bindtextdomain__
50 #define textdomain textdomain__
52 #endif /* _OS2_DEFINES_H */