From 6e8421cbae11b9da61f5803b2f366435a6239de0 Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 27 Oct 2011 17:55:53 +0000 Subject: * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not. (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180569 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppdefault.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/cppdefault.c') diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c index fabf314a024..099899a7726 100644 --- a/gcc/cppdefault.c +++ b/gcc/cppdefault.c @@ -32,6 +32,7 @@ #if defined (CROSS_DIRECTORY_STRUCTURE) && !defined (TARGET_SYSTEM_ROOT) # undef LOCAL_INCLUDE_DIR +# undef NATIVE_SYSTEM_HEADER_DIR #else # undef CROSS_INCLUDE_DIR #endif @@ -84,8 +85,10 @@ const struct default_include cpp_include_defaults[] /* Another place the target system's headers might be. */ { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1, 0, 0 }, #endif +#ifdef NATIVE_SYSTEM_HEADER_DIR /* /usr/include comes dead last. */ { NATIVE_SYSTEM_HEADER_DIR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 0 }, +#endif { 0, 0, 0, 0, 0, 0 } }; #endif /* no INCLUDE_DEFAULTS */ -- cgit v1.2.1