4f88522cc51dc46014f607c8ae12e0e47326930b
[fw/sdcc] / support / cpp2 / auto-host_vc_in.h
1 /* auto-host_in.h: Define values for MSVC 6.0. During build this file
2    should be copied to 'auto-host.h'.
3
4 Copyright (C) 2002  Jesus Calvino-Fraga, jesusc@ieee.org
5
6 This program is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
9 later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/
19
20 #ifndef CPP2_VC_H_
21 #define CPP2_VC_H_
22
23 #include <sys/stat.h>
24 #include <io.h>
25 #include <malloc.h>
26
27 #define HAVE_STRINGIZE
28 #define STDC_HEADERS
29 #define PACKAGE "sdcc"
30 #define LOCALEDIR ""
31 #define PREFIX ""
32 #define inline  __inline
33 #define SIZEOF_INT                      4
34 #define SIZEOF_LONG                     4
35 #define HAVE_TIME_H                     1
36 #define HAVE_STRING_H           1
37 #define HAVE_SYS_STAT_H         1
38 #define HAVE_FCNTL_H            1
39 #define HAVE_STDLIB_H           1
40 #define HAVE_STDDEF_H           1
41 #define HAVE_LIMITS_H           1
42 #define __STDC__                        1
43
44 #define ssize_t int
45 /*So, which ones are the standard types? */
46 #define ino_t _ino_t
47 #define dev_t _dev_t
48 #define stat _stat
49 #define strdup _strdup
50 #define fstat _fstat
51 #define open _open
52 #define close _close
53 #define read _read
54 #define write _write
55 /*This one borrowed from \borland\bcc55\include\sys\stat.h*/
56 #define S_IFBLK  0x3000  /* block special */
57
58 /*If you want to see all the scary warnings remove these ones:*/
59 #pragma warning( disable : 4244 )
60 #pragma warning( disable : 4090 )
61 #pragma warning( disable : 4022 )
62
63 #endif /*CPP2_VC_H_*/