1999-09-27 18:44:28 +00:00
|
|
|
/* -*- C++ -*- */
|
2002-09-25 10:03:41 +00:00
|
|
|
/**
|
|
|
|
* \file os2_defines.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* Prototypes and definitions needed for OS/2.
|
|
|
|
*/
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
#ifndef OS2_DEFINES_H
|
|
|
|
#define OS2_DEFINES_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2001-05-17 15:11:01 +00:00
|
|
|
#if defined (__cplusplus)
|
1999-11-15 12:01:38 +00:00
|
|
|
#include <cctype>
|
|
|
|
#include <cstdlib>
|
2001-09-09 22:02:19 +00:00
|
|
|
|
|
|
|
extern "C"
|
|
|
|
inline int readlink(const char *, char *, size_t) {return -1;}
|
|
|
|
|
2001-05-17 15:11:01 +00:00
|
|
|
#else
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#define readlink(s, t, l) (-1)
|
|
|
|
#endif
|
|
|
|
#include <process.h>
|
2005-01-20 15:38:14 +00:00
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
# include <unistd.h>
|
|
|
|
#endif
|
1999-09-27 18:44:28 +00:00
|
|
|
#include <X11/Xlocale.h>
|
|
|
|
/* #include <malloc.h> */
|
|
|
|
#define lstat stat
|
|
|
|
#define S_ISLNK(x) false
|
|
|
|
#define S_ISBLK(x) false
|
1999-11-15 12:01:38 +00:00
|
|
|
/*#define mkfifo(p, m) (0) *//* LyXserver is temporary disabled. */
|
1999-09-27 18:44:28 +00:00
|
|
|
#define chdir _chdir2
|
|
|
|
#define strcasecmp stricmp
|
|
|
|
#if defined (__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
const char* __XOS2RedirRoot(const char* pathname);
|
|
|
|
#if defined (__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#undef LYX_DIR
|
|
|
|
#define LYX_DIR __XOS2RedirRoot("/XFree86/lib/X11/lyx")
|
|
|
|
#undef LOCALEDIR
|
|
|
|
#define LOCALEDIR __XOS2RedirRoot("/XFree86/lib/X11/locale")
|
|
|
|
#undef TOP_SRCDIR
|
|
|
|
#define TOP_SRCDIR ".."
|
|
|
|
/* I have the slightest idea what I am doing here... */
|
|
|
|
#define bindtextdomain bindtextdomain__
|
|
|
|
#define textdomain textdomain__
|
|
|
|
|
|
|
|
#endif /* _OS2_DEFINES_H */
|