xm-cygwin.h revision 52284
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, 1999 Free Software Foundation, Inc. 4 5This file is part of GNU CC. 6 7GNU CC is free software; you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 9the Free Software Foundation; either version 2, or (at your option) 10any later version. 11 12GNU CC is distributed in the hope that it will be useful, 13but WITHOUT ANY WARRANTY; without even the implied warranty of 14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15GNU General Public License for more details. 16 17You should have received a copy of the GNU General Public License 18along with GNU CC; see the file COPYING. If not, write to 19the Free Software Foundation, 59 Temple Place - Suite 330, 20Boston, MA 02111-1307, USA. */ 21 22#define EXECUTABLE_SUFFIX ".exe" 23#define NO_SYS_SIGLIST 1 24 25/* We support both "/" and "\" since everybody tests both but we 26 default to "/". This is important because if gcc produces Win32 27 paths containing backslashes, make and configure may treat the 28 backslashes as escape characters. Many Win32 programs use forward 29 slashes so using a forward slash shouldn't be problematic from the 30 perspective of wanting gcc to produce native Win32 paths. */ 31#define DIR_SEPARATOR '/' 32#define DIR_SEPARATOR_2 '\\' 33 34/* Convert win32 style path lists to POSIX style for consistency. */ 35#undef GET_ENV_PATH_LIST 36#define GET_ENV_PATH_LIST(VAR,NAME) \ 37do { \ 38 char *_epath; \ 39 char *_posixepath; \ 40 _epath = _posixepath = getenv (NAME); \ 41 /* if we have a posix path list, convert to posix path list */ \ 42 if (_epath != NULL && *_epath != 0 \ 43 && ! cygwin_posix_path_list_p (_epath)) \ 44 { \ 45 char *p; \ 46 _posixepath = (char *) xmalloc \ 47 (cygwin_win32_to_posix_path_list_buf_size (_epath)); \ 48 cygwin_win32_to_posix_path_list (_epath, _posixepath); \ 49 } \ 50 (VAR) = _posixepath; \ 51} while (0) 52 53#define PATH_SEPARATOR ':' 54 55/* This is needed so that protoize will compile. */ 56#ifndef POSIX 57#define POSIX 58#endif 59