OSDN Git Service

2000-12-29 Robert Lipe <robertl@sco.com>
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / xm-os2.h
1 /* Configuration for GNU compiler
2    for an Intel i386 or later processor running OS/2 2.x.
3    Copyright (C) 1993, 1994, 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
4    Contributed by Samuel Figueroa (figueroa@apple.com)
5
6 This file is part of GNU CC.
7
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING.  If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.  */
22
23 #ifndef OS2
24 #define OS2
25 #endif
26
27 #ifdef __IBMC__
28 #include <stdlib.h> /* this defines alloca */
29 #define USG
30 #define ONLY_INT_FIELDS
31 #define USE_PROTOTYPES 1
32 #define strcasecmp stricmp
33 #define kill(a,b) raise(b)
34 #define mktemp tmpnam
35 #else
36 #ifdef __EMX__
37 #define EMX
38 #define USG
39 #define HAVE_PUTENV
40 #define HAVE_VPRINTF
41 #define HAVE_STRERROR
42 #define strcasecmp stricmp
43 #else
44 #define ____386BSD____
45 int spawnv (int modeflag, char *path, char *argv[]);
46 int spawnvp (int modeflag, char *path, char *argv[]);
47 #endif /* __EMX__ */
48 #endif /* __IBMC__ */
49
50 #ifndef PATH_SEPARATOR
51 #define PATH_SEPARATOR ';'
52 #endif
53 #ifndef DIR_SEPARATOR
54 #define DIR_SEPARATOR '\\'
55 #endif
56 #ifndef DIR_SEPARATOR_2
57 #define DIR_SEPARATOR_2 '/'
58 #endif
59
60 /* Allow handling of drive names. */
61 #define HAVE_DOS_BASED_FILE_SYSTEM
62
63 #define EXECUTABLE_SUFFIX ".exe"
64
65 /* The EMX compiler uses regular .o files */
66 #ifndef __EMX__
67 #define OBJECT_SUFFIX ".obj"
68 #endif
69
70 /* Tell GCC about OS/2's bit bucket. */
71
72 #define HOST_BIT_BUCKET "NUL"
73
74 #include "i386/xm-i386.h"