LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sysroot_include.diff of Package mingw64-gcc (Project home:dg0yt:extra)

--- gcc-5.1.0/gcc/config/i386/mingw32.h	2015-01-29 09:03:56.000000000 +0100
+++ gcc-5.1.0/gcc/config/i386/mingw32.h	2015-04-23 22:01:48.493008429 +0200
@@ -171,6 +171,8 @@
    macro contains POSIX-style path.  See bug 52947.  */
 #undef NATIVE_SYSTEM_HEADER_DIR
 #define NATIVE_SYSTEM_HEADER_DIR "/mingw/include"
+#undef NATIVE_SYSTEM_HEADER_DIR2
+#define NATIVE_SYSTEM_HEADER_DIR2 "/include"
 
 /* Output STRING, a string representing a filename, to FILE.
    We canonicalize it to be in Unix format (backslashes are replaced
--- gcc-5.1.0/gcc/cppdefault.c	2015-01-05 13:33:28.000000000 +0100
+++ gcc-5.1.0/gcc/cppdefault.c	2015-04-23 22:14:45.623381233 +0200
@@ -31,6 +31,7 @@
 #if defined (CROSS_DIRECTORY_STRUCTURE) && !defined (TARGET_SYSTEM_ROOT)
 # undef LOCAL_INCLUDE_DIR
 # undef NATIVE_SYSTEM_HEADER_DIR
+# undef NATIVE_SYSTEM_HEADER_DIR2
 #else
 # undef CROSS_INCLUDE_DIR
 #endif
@@ -92,6 +93,11 @@
     { NATIVE_SYSTEM_HEADER_DIR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 2 },
     { NATIVE_SYSTEM_HEADER_DIR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 0 },
 #endif
+#ifdef NATIVE_SYSTEM_HEADER_DIR2
+    /* Optional native system header dir.  */
+    { NATIVE_SYSTEM_HEADER_DIR2, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 2 },
+    { NATIVE_SYSTEM_HEADER_DIR2, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 0 },
+#endif
     { 0, 0, 0, 0, 0, 0 }
   };
 #endif /* no INCLUDE_DEFAULTS */