diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-12 19:37:47 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-12 19:37:47 +0000 |
commit | e678484ce65d0936cf542dfac80e0d25648b500d (patch) | |
tree | 58da5367424fc46a1ddd1b556ccd78b739092602 /gcc/config/i386/xm-cygwin.h | |
parent | 414a3558d3680ef9066c3589e0619283be8f442b (diff) | |
download | gcc-e678484ce65d0936cf542dfac80e0d25648b500d.tar.gz |
Jumbo patch from Geoff Noer to rename CYGWIN32 to CYGWIN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23622 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/xm-cygwin.h')
-rw-r--r-- | gcc/config/i386/xm-cygwin.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/gcc/config/i386/xm-cygwin.h b/gcc/config/i386/xm-cygwin.h new file mode 100644 index 00000000000..86285436a8f --- /dev/null +++ b/gcc/config/i386/xm-cygwin.h @@ -0,0 +1,57 @@ +/* Configuration for GNU C-compiler for hosting on Windows NT. + using a unix style C library. + Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +#define EXECUTABLE_SUFFIX ".exe" +#define NO_SYS_SIGLIST 1 +#define HAVE_BCOPY 1 +#define HAVE_BZERO 1 +#define HAVE_BCMP 1 +#define HAVE_RINDEX 1 +#define HAVE_INDEX 1 + +/* Even though we support "/", allow "\" since everybody tests both. */ +#define DIR_SEPARATOR '\\' + +/* If we allow both '/' and '\' as dir separators, then + allow both unix and win32 PATH syntax */ +#undef GET_ENV_PATH_LIST +#define GET_ENV_PATH_LIST(VAR,NAME) \ +do { \ + char *_epath; \ + char *_win32epath; \ + _epath = _win32epath = getenv (NAME); \ + /* if we have a posix path list, convert to win32 path list */ \ + if (_epath != NULL && *_epath != 0 \ + && cygwin_posix_path_list_p (_epath)) \ + { \ + _win32epath = (char *) xmalloc \ + (cygwin_posix_to_win32_path_list_buf_size (_epath)); \ + cygwin_posix_to_win32_path_list (_epath, _win32epath); \ + } \ + (VAR) = _win32epath; \ +} while (0) + +#define PATH_SEPARATOR ';' + +/* This is needed so that protoize will compile. */ +#ifndef POSIX +#define POSIX +#endif |