stdio.h not needed
[fw/sdcc] / support / cpp / winnt / xm-winnt.h
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)
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 #include <stdlib.h>
23
24 #ifndef USG
25 #define USG 1
26 #endif
27
28 #ifndef ONLY_INT_FIELD
29 #define ONLY_INT_FIELDS 1
30 #endif
31
32 #ifndef USE_PROTOTYPES
33 #define USE_PROTOTYPES 1
34 #endif
35
36 #ifndef HAVE_PUTENV
37 #define HAVE_PUTENV 1
38 #endif
39
40 #ifndef HAVE_VPRINTF
41 #define HAVE_VPRINTF 1
42 #endif
43
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)
51
52 #define OBJECT_SUFFIX ".obj"
53 #define EXECUTABLE_SUFFIX ".exe"
54 #define PATH_SEPARATOR ';'
55 #define DIR_SEPARATOR '\\'
56
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)
69