André Hentschel : winegcc: Make condition easier to read and look like the statement after the block.

Alexandre Julliard julliard at winehq.org
Wed Mar 24 15:54:45 CDT 2010


Module: wine
Branch: master
Commit: 6c8af386384c7d26fb366754a76fe0bd4cc4bd51
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6c8af386384c7d26fb366754a76fe0bd4cc4bd51

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Mar 24 20:16:27 2010 +0100

winegcc: Make condition easier to read and look like the statement after the block.

---

 tools/winegcc/winegcc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 396bcc8..a690754 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -441,8 +441,7 @@ no_compat_defines:
     {
         if (opts->use_msvcrt)
         {
-            if (gcc_defs) strarray_add(comp_args, "-isystem" INCLUDEDIR "/msvcrt");
-            else strarray_add(comp_args, "-I" INCLUDEDIR "/msvcrt");
+            strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/msvcrt" : "-I" INCLUDEDIR "/msvcrt" );
             strarray_add(comp_args, "-D__MSVCRT__");
         }
         strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/windows" : "-I" INCLUDEDIR "/windows" );




More information about the wine-cvs mailing list