summaryrefslogtreecommitdiff
path: root/odb/gcc-fwd.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/gcc-fwd.hxx')
-rw-r--r--odb/gcc-fwd.hxx65
1 files changed, 0 insertions, 65 deletions
diff --git a/odb/gcc-fwd.hxx b/odb/gcc-fwd.hxx
deleted file mode 100644
index 1c6c756..0000000
--- a/odb/gcc-fwd.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-// file : odb/gcc-fwd.hxx
-// copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
-// license : GNU GPL v3; see accompanying LICENSE file
-
-#ifndef ODB_GCC_FWD_HXX
-#define ODB_GCC_FWD_HXX
-
-#if __GNUC__ >= 5
-# if !__has_include(<bversion.h>)
-# error GCC plugin headers are not installed
-# endif
-#endif
-
-#include <bversion.h>
-
-#if BUILDING_GCC_MAJOR >= 6
-
-// If we include <system.h> here, it pulls in all kinds of GCC trouble that
-// "poisons" standard C/C++ declarations; see safe-ctype.h. So instead we
-// are going to "exclude" safe-ctype.h. To compensate, however, we will
-// include it first thing in gcc.hxx.
-//
-# include <config.h>
-# define SAFE_CTYPE_H
-# include <system.h>
-# undef SAFE_CTYPE_H
-# include <coretypes.h>
-
-typedef unsigned int source_location; // <line-map.h>
-typedef source_location location_t; // <input.h>
-
-#else // GCC < 6
-
-#if BUILDING_GCC_MAJOR > 4 || BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR > 8
-# include <limits.h> // CHAR_BIT
-# include <config.h>
-#endif
-
-#if BUILDING_GCC_MAJOR >= 5
-# include <stdint.h> // Needed by coretypes.h
-#endif
-
-extern "C"
-{
-// The hwint.h header uses gcc_checking_assert macro from system.h. But
-// if we include system.h here, it pulls in all kinds of GCC trouble that
-// "poisons" standard C/C++ declarations (see safe-ctype.h for an example).
-// Instead we are just going to provide the no-op definition of this macro.
-//
-#if BUILDING_GCC_MAJOR > 4 || BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR > 8
-# define gcc_checking_assert(expr) ((void)(0 & (expr)))
-# include <hwint.h>
-# undef gcc_checking_assert
-#endif
-
-#include <coretypes.h>
-
-typedef unsigned int source_location; // <line-map.h>
-typedef source_location location_t; // <input.h>
-
-} // extern "C"
-
-#endif
-
-#endif // ODB_GCC_FWD_HXX