From 268a53de823a6750d6256ee1fb1e7707b4b45740 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Fri, 18 Oct 2019 00:31:54 +0200 Subject: sdcc-3.9.0 fork implementing GNU assembler syntax This fork aims to provide better support for stm8-binutils --- src/common.h | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 src/common.h (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..d4d9201 --- /dev/null +++ b/src/common.h @@ -0,0 +1,76 @@ +/*------------------------------------------------------------------------- + common.h - include common header files + + Copyright (C) 2000, KEvin Vigor + + 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. +-------------------------------------------------------------------------*/ + +#include +#include +#include +#include + +#ifndef COMMON_H +#define COMMON_H + +#if defined(__APPLE__) && (__MACH__) +#ifdef _G +#undef _G +#endif +#endif + +/* C++ incompatible header files */ +#ifdef __cplusplus +/* TODO: the extern "C" should be moved to each header file */ +extern "C" { +#endif + +#include "SDCCglobl.h" +#include "SDCCmem.h" +#include "SDCCast.h" +#include "SDCCy.h" +#include "SDCChasht.h" +#include "SDCCbitv.h" +#include "SDCCset.h" +#include "SDCCicode.h" +#include "SDCClabel.h" +#include "SDCCBBlock.h" +#include "SDCCloop.h" +#include "SDCCcse.h" +#include "SDCCcflow.h" +#include "SDCCdflow.h" +#include "SDCClrange.h" +#include "SDCCptropt.h" +#include "SDCCopt.h" +#include "SDCCglue.h" +#include "SDCCpeeph.h" +#include "SDCCdebug.h" +#include "SDCCutil.h" +#include "SDCCasm.h" +#include "SDCCsystem.h" + +#include "port.h" + +#include "newalloc.h" + +#ifdef __cplusplus +} +#endif + +/* C++ compatible header files */ +#include "SDCCgen.h" + +#endif -- cgit v1.2.3