Does anyone, and in particular grischka, who last modified this code,
object to the following patch?

I think TCC's own include directory (/usr/local/lib/tcc/include by
default) should come before the system directories (/usr/local/include
and so on) because there may be compiler-specific files in there.

GCC puts its own directory first, as shown by: echo | gcc -xc -E -v -

Edmund


diff --git a/tcc.h b/tcc.h
index 05e3965..c284880 100644
--- a/tcc.h
+++ b/tcc.h
@@ -272,9 +272,9 @@ static inline void write64le(unsigned char *p, uint64_t x)
 #  define CONFIG_TCC_SYSINCLUDEPATHS "{B}/include;{B}/include/winapi"
 # else
 #  define CONFIG_TCC_SYSINCLUDEPATHS \
-        ALSO_MUADIR(CONFIG_SYSROOT "/usr/local/include") \
-    ":" ALSO_MUADIR(CONFIG_SYSROOT "/usr/include") \
-    ":" "{B}/include"
+        "{B}/include" \
+    ":" ALSO_MUADIR(CONFIG_SYSROOT "/usr/local/include") \
+    ":" ALSO_MUADIR(CONFIG_SYSROOT "/usr/include")
 # endif
 #endif
 

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to