OSDN Git Service

* i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / xm-djgpp.h
1 /* Configuration for GNU C-compiler for Intel 80386 running DJGPP.
2    Copyright (C) 1988, 1996, 1998, 1999, 2000 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 #define __MSDOS__ 1
22
23 #include "i386/xm-i386.h"
24
25 /* Use semicolons to separate elements of a path.  */
26 #define PATH_SEPARATOR ';'
27
28 #define EXECUTABLE_SUFFIX ".exe"
29
30 /* Even though we support "/", allow "\" since everybody tests both.  */
31 #define DIR_SEPARATOR '/'
32 #define DIR_SEPARATOR_2 '\\'
33
34 /* Allow test for DOS drive names.  */
35 #define HAVE_DOS_BASED_FILE_SYSTEM
36
37 /* System dependant initialization for collect2
38    to tell system() to act like Unix.  */
39 #define COLLECT2_HOST_INITIALIZATION \
40   do { __system_flags |= (__system_allow_multiple_cmds                  \
41                           | __system_emulate_chdir); } while (0)
42
43 /* Define a version appropriate for DOS.  */
44 #undef XREF_FILE_NAME
45 #define XREF_FILE_NAME(xref_file, file) \
46   do { \
47     const char xref_ext[] = ".gxref"; \
48     strcpy (xref_file, file); \
49     s = basename (xref_file); \
50     t = strchr (s, '.'); \
51     if (t) \
52       strcpy (t, xref_ext); \
53     else \
54       strcat (xref_file, xref_ext); \
55   } while (0)
56