aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppdefault.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppdefault.h')
-rw-r--r--gcc/cppdefault.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gcc/cppdefault.h b/gcc/cppdefault.h
index 40a860964a8..c87e27d5dee 100644
--- a/gcc/cppdefault.h
+++ b/gcc/cppdefault.h
@@ -34,12 +34,12 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define STANDARD_INCLUDE_COMPONENT 0
#endif
-#ifdef CROSS_COMPILE
-#undef LOCAL_INCLUDE_DIR
-#undef SYSTEM_INCLUDE_DIR
-#undef STANDARD_INCLUDE_DIR
+#if defined (CROSS_COMPILE) && !defined (TARGET_SYSTEM_ROOT)
+# undef LOCAL_INCLUDE_DIR
+# undef SYSTEM_INCLUDE_DIR
+# undef STANDARD_INCLUDE_DIR
#else
-#undef CROSS_INCLUDE_DIR
+# undef CROSS_INCLUDE_DIR
#endif
/* This is the default list of directories to search for include files.
@@ -61,10 +61,14 @@ struct default_include
const int cxx_aware; /* Includes in this directory don't need to
be wrapped in extern "C" when compiling
C++. */
+ const int add_sysroot; /* FNAME should be prefixed by
+ cpp_SYSROOT. */
};
extern const struct default_include cpp_include_defaults[];
extern const char cpp_GCC_INCLUDE_DIR[];
extern const size_t cpp_GCC_INCLUDE_DIR_len;
+extern const char *cpp_SYSROOT;
+
#endif /* ! GCC_CPPDEFAULT_H */