Make "runghc -f path-to-ghc Main.hs" work
[ghc-hetmet.git] / utils / lndir / lndir-Xosdefs.h
1 /*
2  * O/S-dependent (mis)feature macro definitions
3  *
4  * $XConsortium: Xosdefs.h,v 1.7 91/07/19 23:22:19 rws Exp $
5  *
6  * Copyright 1991 Massachusetts Institute of Technology
7  *
8  * Permission to use, copy, modify, distribute, and sell this software and its
9  * documentation for any purpose is hereby granted without fee, provided that
10  * the above copyright notice appear in all copies and that both that
11  * copyright notice and this permission notice appear in supporting
12  * documentation, and that the name of M.I.T. not be used in advertising or
13  * publicity pertaining to distribution of the software without specific,
14  * written prior permission.  M.I.T. makes no representations about the
15  * suitability of this software for any purpose.  It is provided "as is"
16  * without express or implied warranty.
17  *
18  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
20  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
21  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
22  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
23  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24  */
25
26 #ifndef _XOSDEFS_H_
27 #define _XOSDEFS_H_
28
29 /*
30  * X_NOT_STDC_ENV means does not have ANSI C header files.  Lack of this
31  * symbol does NOT mean that the system has stdarg.h.
32  *
33  * X_NOT_POSIX means does not have POSIX header files.  Lack of this
34  * symbol does NOT mean that the POSIX environment is the default.
35  * You may still have to define _POSIX_SOURCE to get it.
36  */
37
38 #ifdef NOSTDHDRS
39 #define X_NOT_POSIX
40 #define X_NOT_STDC_ENV
41 #endif
42
43 #ifdef NeXT
44 #define X_NOT_POSIX
45 #endif
46
47 #ifdef sony
48 #ifndef SYSTYPE_SYSV
49 #define X_NOT_POSIX
50 #endif
51 #endif
52
53 #ifdef UTEK
54 #define X_NOT_POSIX
55 #define X_NOT_STDC_ENV
56 #endif
57
58 #ifdef CRAY
59 #define X_NOT_POSIX
60 #endif
61
62 #ifdef vax
63 #ifndef ultrix                  /* assume vanilla BSD */
64 #define X_NOT_POSIX
65 #define X_NOT_STDC_ENV
66 #endif
67 #endif
68
69 #ifdef luna
70 #define X_NOT_POSIX
71 #define X_NOT_STDC_ENV
72 #endif
73
74 #ifdef Mips
75 #define X_NOT_POSIX
76 #define X_NOT_STDC_ENV
77 #endif
78   
79 #ifdef USL
80 #ifdef SYSV /* (release 3.2) */
81 #define X_NOT_POSIX
82 #define X_NOT_STDC_ENV
83 #endif
84 #endif
85
86 #ifdef SYSV386
87 #ifdef SYSV
88 #define X_NOT_POSIX
89 #define X_NOT_STDC_ENV
90 #endif
91 #endif
92
93 #ifdef MOTOROLA
94 #ifdef SYSV
95 #define X_NOT_STDC_ENV
96 #endif
97 #endif
98
99 #endif /* _XOSDEFS_H_ */