From 7e0ba0282254a65d91c8568cd75939754c696bfd Mon Sep 17 00:00:00 2001 From: pabs3 Date: Thu, 23 Feb 2006 11:27:56 +0000 Subject: [PATCH] Fix 1431958: Properly convert !addincludedir paths on POSIX platforms. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4520 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/script.cpp b/Source/script.cpp index 06e3134a..156c370f 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -2738,7 +2738,16 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) SCRIPT_MSG("!execute: \"%s\"\n",exec); } case TOK_P_ADDINCLUDEDIR: +#ifdef _WIN32 include_dirs.add(line.gettoken_str(1),0); +#else + { + char *f = line.gettoken_str(1); + char *fc = my_convert(f); + include_dirs.add(fc,0); + my_convert_free(fc); + } +#endif return PS_OK; case TOK_P_INCLUDE: {