This commit was manufactured by cvs2svn to create tag
[lyx.git] / src / os2_defines.h
blob02525f954658e0bc2c06aee58549f95b6ab1b4ad
1 /* -*- C++ -*- */
2 /* This file is part of
3 * ======================================================
4 *
5 * LyX, The Document Processor
6 *
7 * Copyright (C) 1995,1996 Matthias Ettrich
9 *======================================================
10 A few prototypes and definitions needed for OS/2 */
12 #ifndef _OS2_DEFINES_H
13 #define _OS2_DEFINES_H
15 #include <ctype.h>
16 #include <process.h>
17 #include <stdlib.h>
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)
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__
47 #endif /* _OS2_DEFINES_H */