2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ======================================================
11 A few prototypes and definitions needed for OS/2 */
20 #include <X11/Xlocale.h>
21 /* #include <malloc.h> */
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
29 #define strcasecmp stricmp
30 #if defined (__cplusplus)
33 const char* __XOS2RedirRoot(const char* pathname);
34 #if defined (__cplusplus)
38 #define LYX_DIR __XOS2RedirRoot("/XFree86/lib/X11/lyx")
40 #define LOCALEDIR __XOS2RedirRoot("/XFree86/lib/X11/locale")
42 #define TOP_SRCDIR ".."
43 /* I have the slightest idea what I am doing here... */
44 #define bindtextdomain bindtextdomain__
45 #define textdomain textdomain__
47 #endif /* _OS2_DEFINES_H */