1/* Configuration for GNU C-compiler for openVMS/Alpha.
2   Copyright (C) 1996, 1997, 2001, 2004 Free Software Foundation, Inc.
3   Contributed by Klaus Kaempf (kkaempf@progis.de).
4
5This file is part of GCC.
6
7GCC 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
12GCC 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 GCC; see the file COPYING.  If not, write to
19the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20Boston, MA 02110-1301, USA.  */
21
22/* A couple of conditionals for execution machine are controlled here.  */
23#ifndef VMS
24#define VMS
25#endif
26
27/* Define a local equivalent (sort of) for unlink */
28#define unlink remove
29
30/* Causes exit() to be redefined to __posix_exit() and
31   Posix compatible failure and success codes to be used */
32#define _POSIX_EXIT 1
33
34/* Open files in stream mode if not otherwise explicitly specified */
35#define __UNIX_FOPEN 1
36
37/* Write to stdout using fputc to avoid record terminators in pipes */
38#define __UNIX_FWRITE 1
39
40#define STDC_HEADERS 1
41
42#define HOST_EXECUTABLE_SUFFIX ".exe"
43#define HOST_OBJECT_SUFFIX ".obj"
44
45#define DUMPFILE_FORMAT "_%02d_"
46
47#define DELETE_IF_ORDINARY(NAME,ST,VERBOSE_FLAG)           \
48do                                                         \
49  {                                                        \
50    while (stat (NAME, &ST) >= 0 && S_ISREG (ST.st_mode))  \
51      if (unlink (NAME) < 0)                               \
52	{                                                  \
53	  if (VERBOSE_FLAG)                                \
54	    perror_with_name (NAME);                       \
55	  break;                                           \
56	}                                                  \
57  } while (0)
58