tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] [PATCH] tcc.h: Fix CONFIG_TCC_SYSINCLUDEPATHS


From: Ramsay Jones
Subject: [Tinycc-devel] [PATCH] tcc.h: Fix CONFIG_TCC_SYSINCLUDEPATHS
Date: Wed, 02 Oct 2013 20:17:38 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

Commit 9382d6f1 ("Fix lib, include, crt and libgcc search paths",
07-09-2013) inadvertently included an initial empty entry to the
CONFIG_TCC_SYSINCLUDEPATHS variable (for non win32 targets). In
addition to an empty line in the 'tcc -vv' display, this leads
to the preprocessor attempting to read an include file from the
root of the filesystem (i.e. '/header.h').

Signed-off-by: Ramsay Jones <address@hidden>
---
 tcc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tcc.h b/tcc.h
index 5ed3e21..60f5f8c 100644
--- a/tcc.h
+++ b/tcc.h
@@ -185,7 +185,7 @@
 #  define CONFIG_TCC_SYSINCLUDEPATHS "{B}/include;{B}/include/winapi"
 # else
 #  define CONFIG_TCC_SYSINCLUDEPATHS \
-    ":" CONFIG_SYSROOT "/usr/local/include/" CONFIG_MULTIARCHDIR \
+        CONFIG_SYSROOT "/usr/local/include/" CONFIG_MULTIARCHDIR \
     ":" CONFIG_SYSROOT "/usr/local/include" \
     ":" CONFIG_SYSROOT "/usr/include/" CONFIG_MULTIARCHDIR \
     ":" CONFIG_SYSROOT "/usr/include" \
-- 
1.8.4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]