]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/i386/xm-cygwin.h
Jumbo patch from Geoff Noer to rename CYGWIN32 to CYGWIN.
[thirdparty/gcc.git] / gcc / config / i386 / xm-cygwin.h
1 /* Configuration for GNU C-compiler for hosting on Windows NT.
2 using a unix style C library.
3 Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
4
5 This file is part of GNU CC.
6
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22 #define EXECUTABLE_SUFFIX ".exe"
23 #define NO_SYS_SIGLIST 1
24 #define HAVE_BCOPY 1
25 #define HAVE_BZERO 1
26 #define HAVE_BCMP 1
27 #define HAVE_RINDEX 1
28 #define HAVE_INDEX 1
29
30 /* Even though we support "/", allow "\" since everybody tests both. */
31 #define DIR_SEPARATOR '\\'
32
33 /* If we allow both '/' and '\' as dir separators, then
34 allow both unix and win32 PATH syntax */
35 #undef GET_ENV_PATH_LIST
36 #define GET_ENV_PATH_LIST(VAR,NAME) \
37 do { \
38 char *_epath; \
39 char *_win32epath; \
40 _epath = _win32epath = getenv (NAME); \
41 /* if we have a posix path list, convert to win32 path list */ \
42 if (_epath != NULL && *_epath != 0 \
43 && cygwin_posix_path_list_p (_epath)) \
44 { \
45 _win32epath = (char *) xmalloc \
46 (cygwin_posix_to_win32_path_list_buf_size (_epath)); \
47 cygwin_posix_to_win32_path_list (_epath, _win32epath); \
48 } \
49 (VAR) = _win32epath; \
50 } while (0)
51
52 #define PATH_SEPARATOR ';'
53
54 /* This is needed so that protoize will compile. */
55 #ifndef POSIX
56 #define POSIX
57 #endif