diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-27 17:55:53 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-27 17:55:53 +0000 |
commit | 6e8421cbae11b9da61f5803b2f366435a6239de0 (patch) | |
tree | 390aa4fff252d4b8e9b1afc8f6f426c847427f4c /gcc/cppdefault.c | |
parent | e7369e9e0f2eac20abafe164737543d191236468 (diff) | |
download | gcc-6e8421cbae11b9da61f5803b2f366435a6239de0.tar.gz |
* 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
Diffstat (limited to 'gcc/cppdefault.c')
-rw-r--r-- | gcc/cppdefault.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |