]> git.lyx.org Git - lyx.git/blob - src/os2_defines.h
white-space changes, removed definitions.h several enum changes because of this,...
[lyx.git] / src / os2_defines.h
1 /* -*- C++ -*- */
2 /* This file is part of
3 * ====================================================== 
4
5 *           LyX, The Document Processor
6 *        
7 *           Copyright (C) 1995, 1996 Matthias Ettrich
8 *
9 * ====================================================== 
10  A few prototypes and definitions needed for OS/2 */
11
12 #ifndef OS2_DEFINES_H
13 #define OS2_DEFINES_H
14
15 #include <cctype>
16 #include <process.h>
17 #include <cstdlib>
18 #include <unistd.h>
19 #include <X11/Xlocale.h>
20 /* #include <assert.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 */