summaryrefslogtreecommitdiff
path: root/support/cpp/auto-host_vc_in.h
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-18 00:31:54 +0200
committerXavier ASUS <xavi92psx@gmail.com>2019-10-18 00:31:54 +0200
commit268a53de823a6750d6256ee1fb1e7707b4b45740 (patch)
tree42c1799a9a82b2f7d9790ee9fe181d72a7274751 /support/cpp/auto-host_vc_in.h
downloadsdcc-gas-268a53de823a6750d6256ee1fb1e7707b4b45740.tar.gz
sdcc-3.9.0 fork implementing GNU assembler syntax
This fork aims to provide better support for stm8-binutils
Diffstat (limited to 'support/cpp/auto-host_vc_in.h')
-rw-r--r--support/cpp/auto-host_vc_in.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/support/cpp/auto-host_vc_in.h b/support/cpp/auto-host_vc_in.h
new file mode 100644
index 0000000..d5070be
--- /dev/null
+++ b/support/cpp/auto-host_vc_in.h
@@ -0,0 +1,82 @@
+/* auto-host_in.h: Define values for MSVC 6.0. During build this file
+ should be copied to 'auto-host.h'.
+
+Copyright (C) 2002 Jesus Calvino-Fraga, jesusc@ieee.org
+
+This program 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.
+
+This program 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 this program; if not, write to the Free Software
+Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/
+
+#ifndef CPP_VC_H_
+#define CPP_VC_H_
+
+#include <sys/stat.h>
+#include <io.h>
+#include <malloc.h>
+#include <stdio.h>
+
+#define HAVE_STRINGIZE
+#define STDC_HEADERS 1
+#define PACKAGE "sdcc"
+#define LOCALEDIR ""
+#define PREFIX ""
+#define inline __inline
+#define SIZEOF_INT 4
+#define SIZEOF_LONG 4
+#define HAVE_TIME_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_FCNTL_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STDDEF_H 1
+#define HAVE_LIMITS_H 1
+#ifndef __STDC__
+#define __STDC__ 1
+#endif
+
+#define ssize_t int
+
+#ifdef _MSC_VER
+/*So, which ones are the standard types? */
+#define ino_t _ino_t
+#define dev_t _dev_t
+#define stat _stat
+#define strdup _strdup
+#define fstat _fstat
+#define open _open
+#define close _close
+#define read _read
+#define write _write
+
+#define O_APPEND _O_APPEND
+#define O_CREAT _O_CREAT
+#define O_EXCL _O_EXCL
+#define O_RDONLY _O_RDONLY
+#define O_RDWR _O_RDWR
+#define O_TRUNC _O_TRUNC
+#define O_WRONLY _O_WRONLY
+#define O_BINARY _O_BINARY
+#define O_TEXT _O_TEXT
+
+/*This one borrowed from \borland\bcc55\include\sys\stat.h*/
+#define S_IFBLK 0x3000 /* block special */
+
+/*If you want to see all the scary warnings remove these ones:*/
+#pragma warning( disable : 4244 )
+#pragma warning( disable : 4090 )
+#pragma warning( disable : 4022 )
+
+typedef int intptr_t;
+#endif /* _MSC_VER */
+
+#endif /*CPP_VC_H_*/