Initial revision
[official-gcc.git] / gcc / config / winnt / xm-winnt.h
blobbe62d020138dad27075aacf50a6a740c11f6d416
1 /* Configuration for GNU compiler for processor running Windows NT 3.x.
2 Copyright (C) 1993, 1995 Free Software Foundation, Inc.
3 Contributed by Douglas B. Rupp (drupp@cs.washington.edu)
5 This file is part of GNU CC.
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.
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.
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. */
22 #include <stdlib.h>
24 #ifndef USG
25 #define USG 1
26 #endif
28 #ifndef ONLY_INT_FIELD
29 #define ONLY_INT_FIELDS 1
30 #endif
32 #ifndef USE_PROTOTYPES
33 #define USE_PROTOTYPES 1
34 #endif
36 #ifndef HAVE_PUTENV
37 #define HAVE_PUTENV 1
38 #endif
40 #ifndef HAVE_VPRINTF
41 #define HAVE_VPRINTF 1
42 #endif
44 #define NO_SYS_SIGLIST 1
45 #define bcmp(a,b,c) memcmp (a,b,c)
46 #define bcopy(a,b,c) memcpy (b,a,c)
47 #define bzero(a,b) memset (a,0,b)
48 #define index strchr
49 #define rindex strrchr
50 #define kill(a,b) raise(b)
52 #define OBJECT_SUFFIX ".obj"
53 #define EXECUTABLE_SUFFIX ".exe"
54 #define PATH_SEPARATOR ';'
55 #define DIR_SEPARATOR '\\'
57 #define S_IRUSR 0000400
58 #define S_IWUSR 0000200
59 #define S_IXUSR 0000100
60 #define S_IRGRP 0000040
61 #define S_IWGRP 0000020
62 #define S_IXGRP 0000010
63 #define S_IROTH 0000004
64 #define S_IWOTH 0000002
65 #define S_IXOTH 0000001
66 #define S_IRWXU S_IRUSR | S_IWUSR | S_IXUSR
67 #define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
68 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)