mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-21 23:51:25 +00:00
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
|
/* -*- C++ -*- */
|
||
|
/* This file is part of
|
||
|
* ======================================================
|
||
|
*
|
||
|
* LyX, The Document Processor
|
||
|
*
|
||
|
* Copyright (C) 1995,1996 Matthias Ettrich
|
||
|
*
|
||
|
*======================================================
|
||
|
A few prototypes and definitions needed for OS/2 */
|
||
|
|
||
|
#ifndef _OS2_DEFINES_H
|
||
|
#define _OS2_DEFINES_H
|
||
|
|
||
|
#include <ctype.h>
|
||
|
#include <process.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <unistd.h>
|
||
|
#include <X11/Xlocale.h>
|
||
|
/* #include <assert.h> */
|
||
|
/* #include <malloc.h> */
|
||
|
#define lstat stat
|
||
|
#define S_ISLNK(x) false
|
||
|
#define S_ISBLK(x) false
|
||
|
#define readlink(s,t,l) (strcpy(t,s),strlen(t))
|
||
|
/*#define mkfifo(p,m) (0) *//* LyXserver is temporary disabled. */
|
||
|
#define getcwd _getcwd2
|
||
|
#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 */
|